|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
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.
Note:<b/> it is extremely important that objects that are equivalent according to their "equals()" implementation produce equivalent serialized streams. Violating this relationship will result in non-deterministic behavior for many Coherence services.
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 |
---|
void serialize(WriteBuffer.BufferOutput out, java.lang.Object o) throws java.io.IOException
out
- the BufferOutput with which to write the object's stateo
- the object to serializejava.io.IOException
- if an I/O error occursjava.lang.Object deserialize(ReadBuffer.BufferInput in) throws java.io.IOException
in
- the BufferInput with which to read the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |