Class XmlPofSerializer
IPofSerializer implementation that supports .NET XML serialization and deserialization.
Implements
Inherited Members
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public class XmlPofSerializer : IPofSerializer
Constructors
XmlPofSerializer(int)
Create a new XmlPofSerializer for the user type with the given type identifier.
Declaration
public XmlPofSerializer(int typeId)
Parameters
Type | Name | Description |
---|---|---|
int | typeId | The user type identifier. |
Fields
m_typeId
The type identifier of the user type to serialize and deserialize.
Declaration
protected int m_typeId
Field Value
Type | Description |
---|---|
int |
Methods
Deserialize(IPofReader)
Deserialize a user type instance from a POF stream by reading its state using the specified IPofReader object.
Declaration
public object Deserialize(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader with which to read the object's state. |
Returns
Type | Description |
---|---|
object | The deserialized user type instance. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
Serialize(IPofWriter, object)
Serialize a user type instance to a POF stream by writing its state using the specified IPofWriter object.
Declaration
public void Serialize(IPofWriter writer, object o)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter with which to write the object's state. |
object | o | The object to serialize. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |