|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ZSerializable indicates that a class can be read/written with
ZObjectOutputStream
If the object declares the ZSerializable writeReplace() method, then the object returned by writeReplace will be written out instead of this one. If writeReplace() is specified, and returns null, then this object is not written out at all.
If the object declares the ZSerializable readResolve() method, then the object returned by readResolve will be read in instead of this one. In this case, the setState of the new object will be called instead of the original one. The new object can just handle whatever subset of the original object's state as it wants - and ignore the rest. If readResolve() is specified, and returns null, then this object is not read in at all - and any references to this object will be replaced with null references.
Warning: Serialized and ZSerialized objects will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.
Method Summary | |
void |
setState(java.lang.String fieldType,
java.lang.String fieldName,
java.lang.Object fieldValue)
Set some state of this object as it gets read back in. |
void |
writeObject(ZObjectOutputStream out)
Write out all of this object's state. |
void |
writeObjectRecurse(ZObjectOutputStream out)
Specify which objects this object references in order to write out the scenegraph properly |
Method Detail |
public void writeObject(ZObjectOutputStream out) throws java.io.IOException
out
- The stream that this object writes intopublic void writeObjectRecurse(ZObjectOutputStream out) throws java.io.IOException
out
- The stream that this object writes intopublic void setState(java.lang.String fieldType, java.lang.String fieldName, java.lang.Object fieldValue)
fieldType
- The fully qualified type of the fieldfieldName
- The name of the fieldfieldValue
- The value of the field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |