|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Serializer
The Serializer interface provides the capability of reading and writing a Java object from and to an in-memory buffer. <p/> 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.
ReadBuffer, WriteBuffer| Method Summary | |
|---|---|
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, Object o)Serialize an object to a WriteBuffer by writing its state using the specified BufferOutput object. |
| Method Detail |
|---|
void serialize(WriteBuffer.BufferOutput out,
Object o)
throws IOException
out - the BufferOutput with which to write the object's stateo - the object to serializeIOException - if an I/O error occurs
Object deserialize(ReadBuffer.BufferInput in)
throws IOException
in - the BufferInput with which to read the object's stateIOException - if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||