Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.io
Interface Serializer

All Known Subinterfaces:
  PofContext

All Known Implementing Classes:
  ConfigurablePofContext, DefaultSerializer, NullImplementation.NullPofContext, SafeConfigurablePofContext, SimplePofContext

    public interface Serializer

The Serializer interface provides the capability of reading and writing a Java object from and to an in-memory buffer.

Serializer implementations should implement the ClassLoaderAware interface if they need access to a ClassLoader. However, to support hot-deploying containers, it is important that a Serializer not hold any strong references to that ClassLoader, or to any Class objects obtained from that ClassLoader.

Since:
  Coherence 3.2
Author:
  cp/jh 2007.07.21
See Also:
  `ReadBuffer`, `WriteBuffer`

Method Summary
`java.lang.Object` | `deserialize(ReadBuffer.BufferInput in)` Deserialize an object from a ReadBuffer by reading its state using the specified BufferInput object.
`void` | `serialize(WriteBuffer.BufferOutput out, java.lang.Object o)` Serialize an object to a WriteBuffer by writing its state using the specified BufferOutput object.

Method Detail

### serialize

    void serialize(WriteBuffer.BufferOutput out,
                   java.lang.Object o)
                   throws java.io.IOException

  Serialize an object to a WriteBuffer by writing its state using the specified BufferOutput object.

  Parameters:
    `out` - the BufferOutput with which to write the object's state
    `o` - the object to serialize
  Throws:
    `java.io.IOException` - if an I/O error occurs

### deserialize

    java.lang.Object deserialize(ReadBuffer.BufferInput in)
                                 throws java.io.IOException

  Deserialize an object from a ReadBuffer by reading its state using the specified BufferInput object.

  Parameters:
    `in` - the BufferInput with which to read the object's state
  Returns:
    the deserialized user type instance
  Throws:
    `java.io.IOException` - if an I/O error occurs

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.