|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.io.pof.PofHelper
com.tangosol.io.pof.PortableObjectSerializer
public class PortableObjectSerializer
PofSerializer
implementation that supports the serialization and
deserialization of any class that implements PortableObject
to and
from a POF stream.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.io.pof.PofHelper |
---|
PofHelper.ReadableEntrySetMap, PofHelper.WriteableEntrySetMap |
Field Summary | |
---|---|
protected int |
m_nTypeId
The type identifier of the user type to serialize and deserialize. |
Fields inherited from class com.tangosol.io.pof.PofHelper |
---|
BIGDECIMAL_ZERO, BINARY_EMPTY, BOOLEAN_ARRAY_EMPTY, BYTE_ARRAY_EMPTY, CHAR_ARRAY_EMPTY, COLLECTION_EMPTY, DOUBLE_ARRAY_EMPTY, FLOAT_ARRAY_EMPTY, INT_ARRAY_EMPTY, LONG_ARRAY_EMPTY, OBJECT_ARRAY_EMPTY, SHORT_ARRAY_EMPTY |
Constructor Summary | |
---|---|
PortableObjectSerializer(int nTypeId)
Create a new PortableObjectSerializer for the user type with the given type identifier. |
Method Summary | |
---|---|
Object |
deserialize(PofReader in)
Deserialize a user type instance from a POF stream by reading its state using the specified PofReader object. |
void |
serialize(PofWriter out,
Object o)
Serialize a user type instance to a POF stream by writing its state using the specified PofWriter object. |
Field Detail |
---|
protected final int m_nTypeId
Constructor Detail |
---|
public PortableObjectSerializer(int nTypeId)
nTypeId
- the user type identifierMethod Detail |
---|
public void serialize(PofWriter out, Object o) throws IOException
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 serialize
IOException
- if an I/O error occurspublic Object deserialize(PofReader in) throws IOException
PofWriter.getVersionId()
.PofReader.readRemainder()
.
deserialize
in interface PofSerializer
in
- the PofReader with which to read the object's state
IOException
- if an I/O error occurs
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |