|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.io.pof.SafeConfigurablePofContext.SafePofSerializer
public class SafeConfigurablePofContext.SafePofSerializer
Serializer used for objects implementing the PortableObject interface.
Constructor Summary | |
---|---|
SafeConfigurablePofContext.SafePofSerializer() |
Method Summary | |
---|---|
java.lang.Object |
deserialize(PofReader in) Deserialize a user type instance from a POF stream by reading its state using the specified PofReader object. |
protected void |
register(java.lang.String sClass) Register a class as having been encountered by the serializer. |
void |
serialize(PofWriter out, java.lang.Object o) Serialize a user type instance to a POF stream by writing its state using the specified PofWriter object. |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString |
Constructor Detail |
---|
public SafeConfigurablePofContext.SafePofSerializer()
Method Detail |
---|
public void serialize(PofWriter out, 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
out
- 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 in) 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
in
- the PofReader with which to read the object's statejava.io.IOException
- if an I/O error occursprotected void register(java.lang.String sClass)
sClass
- the name of a class that is being serialized or deserialized
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |