Show / Hide Table of Contents

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.

Inheritance
object
Codecs.AbstractCodec
Codecs.DefaultCodec
Implements
ICodec
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

ICodec
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.