|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.io.pof.EnumPofSerializer
public class EnumPofSerializer
PofSerializer
implementation that can be used to serialize all enum values.
Constructor Summary | |
---|---|
EnumPofSerializer() |
Method Summary | |
---|---|
java.lang.Object |
deserialize(PofReader reader) Deserialize a user type instance from a POF stream by reading its state using the specified PofReader object. |
void |
serialize(PofWriter writer, java.lang.Object o) Serialize a user type instance to a POF stream by writing its state using the specified PofWriter object. |
Constructor Detail |
---|
public EnumPofSerializer()
Method Detail |
---|
public void serialize(PofWriter writer, java.lang.Object o) throws java.io.IOException
An implementation of PofSerializer is required to follow the following steps in sequence for writing out an object of a user type:
PofWriter.setVersionId(int)
.PofWriter.writeRemainder(com.tangosol.util.Binary)
.serialize
in interface PofSerializer
writer
- the PofWriter with which to write the object's stateo
- the object to serializejava.io.IOException
- if an I/O error occurspublic java.lang.Object deserialize(PofReader reader) throws java.io.IOException
An implementation of PofSerializer is required to follow the following steps in sequence for reading in an object of a user type:
PofReader.getVersionId()
.PofReader.registerIdentity(java.lang.Object)
with the new instance prior to reading any properties which are user type instances themselves.PofReader.readRemainder()
.deserialize
in interface PofSerializer
reader
- the PofReader with which to read the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |