Java Doc for PersistenceInputStream.java in  » Science » Cougaar12_4 » org » cougaar » core » persist » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.core.persist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.io.ObjectInputStream
   org.cougaar.core.persist.PersistenceInputStream

PersistenceInputStream
public class PersistenceInputStream extends ObjectInputStream implements PersistenceStream(Code)
Read persisted objects from a stream. Detects objects that have been wrapped in a PersistenceAssociation and resolves those to the current definition of the object. The first occurence of any object must be inside a PersistenceAssociation. This defining instance is stored in the identityTable. Thereafter, its values are updated from later versions of the same object.



Constructor Summary
public  PersistenceInputStream(ObjectInputStream ois, Logger logger)
    

Method Summary
static  voidcheckSuperclass()
    
public  voidclose()
    
public  IdentityTablegetIdentityTable()
     Get the IdentityTable being used by this stream.
public  MessageAddressgetOriginator()
    
public  MessageAddressgetTarget()
    
protected  ObjectnewInstanceFromDesc(ObjectStreamClass desc)
     Allocate an object to be filled in from the serialized stream.
public  PersistenceAssociationreadAssociation(PersistenceReference[] references)
     Read the association for one object.
protected  ObjectresolveObject(Object o)
     Resolve an object just read from the stream into the actual result object.
public  voidsetIdentityTable(IdentityTable identityTable)
     Set the IdentityTable to be used by this stream.


Constructor Detail
PersistenceInputStream
public PersistenceInputStream(ObjectInputStream ois, Logger logger) throws IOException(Code)
Construct from the object stream
Parameters:
  ois - ObjectInputStream
Parameters:
  logger - Logger to use for progress




Method Detail
checkSuperclass
static void checkSuperclass()(Code)



close
public void close() throws IOException(Code)



getIdentityTable
public IdentityTable getIdentityTable()(Code)
Get the IdentityTable being used by this stream. This is not normally used since the IdentityTable is usually maintained by the creator of this stream. the IdentityTable being used by this stream.



getOriginator
public MessageAddress getOriginator()(Code)



getTarget
public MessageAddress getTarget()(Code)



newInstanceFromDesc
protected Object newInstanceFromDesc(ObjectStreamClass desc) throws InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException(Code)
Allocate an object to be filled in from the serialized stream. This is a hook provided by the ObjectInputStream class for obtaining an object whose fields can be filled in. Normally, this returns a brand new object, but during rehydration we need to update the values of objects that already exist so we override this method and return existing objects corresponding to the reference ids we expect to encounter.
Parameters:
  desc - description of class to create the object to be filled in.



readAssociation
public PersistenceAssociation readAssociation(PersistenceReference[] references) throws IOException, ClassNotFoundException(Code)
Read the association for one object. This is the inverse of PersistenceOutputStream.writeAssociation. The active state of the PersistenceAssociation is set according to whether it was active when the persistence delta was generated.
Parameters:
  references - the array of references for objects that werewritten when this association was written. This allows us to knowin advance the identity of each object as it is read.



resolveObject
protected Object resolveObject(Object o) throws IOException(Code)
Resolve an object just read from the stream into the actual result object. We replace PersistenceReference objects with the object to which they refer.
Parameters:
  o - the object to resolve. the replacement.



setIdentityTable
public void setIdentityTable(IdentityTable identityTable)(Code)
Set the IdentityTable to be used by this stream. The IdentityTable contains assocations of objects to earlier persistence deltas. References to these earlier objects are replaced with reference objects to save space.
Parameters:
  identityTable - the new IdentityTable to use.



Methods inherited from java.io.ObjectInputStream
public int available() throws IOException(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public void defaultReadObject() throws IOException, ClassNotFoundException(Code)(Java Doc)
protected boolean enableResolveObject(boolean enable) throws SecurityException(Code)(Java Doc)
protected Object newInstanceFromDesc(ObjectStreamClass desc) throws InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException(Code)(Java Doc)
public int read() throws IOException(Code)(Java Doc)
public int read(byte[] buf, int off, int len) throws IOException(Code)(Java Doc)
public boolean readBoolean() throws IOException(Code)(Java Doc)
public byte readByte() throws IOException(Code)(Java Doc)
public char readChar() throws IOException(Code)(Java Doc)
protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException(Code)(Java Doc)
public double readDouble() throws IOException(Code)(Java Doc)
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException(Code)(Java Doc)
public float readFloat() throws IOException(Code)(Java Doc)
public void readFully(byte[] buf) throws IOException(Code)(Java Doc)
public void readFully(byte[] buf, int off, int len) throws IOException(Code)(Java Doc)
public int readInt() throws IOException(Code)(Java Doc)
public String readLine() throws IOException(Code)(Java Doc)
public long readLong() throws IOException(Code)(Java Doc)
final public Object readObject() throws IOException, ClassNotFoundException(Code)(Java Doc)
protected Object readObjectOverride() throws IOException, ClassNotFoundException(Code)(Java Doc)
public short readShort() throws IOException(Code)(Java Doc)
protected void readStreamHeader() throws IOException, StreamCorruptedException(Code)(Java Doc)
public String readUTF() throws IOException(Code)(Java Doc)
public Object readUnshared() throws IOException, ClassNotFoundException(Code)(Java Doc)
public int readUnsignedByte() throws IOException(Code)(Java Doc)
public int readUnsignedShort() throws IOException(Code)(Java Doc)
final protected Object real_newInstanceFromDesc(ObjectStreamClass desc) throws InstantiationException, IllegalAccessException, java.lang.reflect.InvocationTargetException(Code)(Java Doc)
public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException(Code)(Java Doc)
protected Class resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException(Code)(Java Doc)
protected Object resolveObject(Object obj) throws IOException(Code)(Java Doc)
protected Class resolveProxyClass(String[] interfaces) throws IOException, ClassNotFoundException(Code)(Java Doc)
public int skipBytes(int len) throws IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.