|
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.XmlSerializablePofSerializer
public class XmlSerializablePofSerializer
PofSerializer implementation that supports the serialization and
deserialization of any class that implements XmlSerializable to
and from a POF stream. This implementation is provided to ease migration
of XmlSerializable implementations to support the POF stream format.
| 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 | |
|---|---|
XmlSerializablePofSerializer(int nTypeId)
Create a new XmlSerializablePofSerializer 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 XmlSerializablePofSerializer(int nTypeId)
nTypeId - the user type identifier| Method Detail |
|---|
public void serialize(PofWriter out,
Object o)
throws IOException
PofWriter.setVersionId(int).PofWriter.writeRemainder(com.tangosol.util.Binary).
serialize in interface PofSerializerout - the PofWriter with which to write the object's stateo - the object to serialize
IOException - if an I/O error occurs
public Object deserialize(PofReader in)
throws IOException
PofWriter.getVersionId().PofReader.readRemainder().
deserialize in interface PofSerializerin - 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 | |||||||