Class Codecs.AbstractCodec
Abstract ICodec implementations that encodes
objects by simply delegating to
WriteObject(int, object). Generally the default
WriteObject
implementation does not need to be modified as
the current accommodation of types and conversion to POF is
generally accepted, with the deserialization being more likely
to be specific.
Implements
Inherited Members
Namespace: Tangosol.IO.Pof.Reflection
Assembly: Coherence.dll
Syntax
public abstract class Codecs.AbstractCodec : ICodec
Methods
Decode(IPofReader, int)
Deserialize an object from the provided IPofReader. Implementing this interface allows introducing specific return implementations.
Declaration
public abstract object Decode(IPofReader reader, int index)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader to read from. |
int | index | The index of the POF property to deserialize. |
Returns
Type | Description |
---|---|
object | A specific implementation of the POF property. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
Encode(IPofWriter, int, object)
Serialize an object using the provided IPofWriter.
Declaration
public virtual void Encode(IPofWriter writer, int index, object value)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriterto read from. |
int | index | The index of the POF property to serialize. |
object | value | The value to serialize. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |