|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bubble.serializer.DeserializationContext
The DeserializationContext allows Objects and object graphs that were serialized by a SerializationContext to be read from a ByteBuffer.
The function of the context is to keep track of objects and class data that have already been read, allowing the data to contain simple references to other objects. This allows, for instance, the serialization of objects graphs that contains cycles.
Only objects that implement java.io.Serializable
can be read
by a DeserializationContext. Currently, custom deserialization (through
java.io.Externalizable
or readObject
method)
as well as other advanced serialization features are not supported.
The data in the ByteBuffer is not self-contained, because it may refer to objects or classes that have been previously read. Because of that, data written with a single SerializationContext should be read by a single DeserializationContext.
ByteBuffer
,
Serializable
,
SerializationContext
Constructor Summary | |
DeserializationContext()
Constructs a new DeserializationContext. |
Method Summary | |
java.lang.Object |
deserialize(java.nio.ByteBuffer buffer)
Reads an object from a ByteBuffer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeserializationContext()
Method Detail |
public java.lang.Object deserialize(java.nio.ByteBuffer buffer)
buffer
- The buffer that contains the object data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |