Show / Hide Table of Contents

Interface IPortableObject

The IPortableObject interface is implemented by .NET classes that can self-serialize and deserialize their state to and from a POF data stream.

Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public interface IPortableObject
Remarks

The ReadExternal(IPofReader) and WriteExternal(IPofWriter) methods of the IPortableObject interface are implemented by a class to give the class complete control its own POF serialization and deserialization.

Methods

ReadExternal(IPofReader)

Restore the contents of a user type instance by reading its state using the specified IPofReader object.

Declaration
void ReadExternal(IPofReader reader)
Parameters
Type Name Description
IPofReader reader

The IPofReader from which to read the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

WriteExternal(IPofWriter)

Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Declaration
void WriteExternal(IPofWriter writer)
Parameters
Type Name Description
IPofWriter writer

The IPofWriter to which to write the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

See Also

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