|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| 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.
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 serialize
IOException - if an I/O error occurs
Object deserialize(ReadBuffer.BufferInput in)
throws IOException
in - the BufferInput with which to read the object's state
IOException - if an I/O error occurs
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||