|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStoreSerializer
An interface that encapsulates behaviors for (de-)serialization of objects on
an IRawStore.
Note that the methods declared on this interface MUST construct
ObjectOutputStreams that implement IStoreObjectOutputStream
and ObjectInputStreams that implement
IStoreObjectInputStream thereby make the IRawStore reference
available during (de-)serialization. This constraint makes it possible to
utilize the IAddressManager for the store during (de-)serialization.
BTree. See NodeSerializer and
IAddressSerializer.| Method Summary | |
|---|---|
Object |
deserialize(byte[] b)
De-serialize an object using the Java serialization mechanisms. |
Object |
deserialize(byte[] b,
int off,
int len)
De-serialize an object using the Java serialization mechanisms. |
Object |
deserialize(ByteBuffer buf)
De-serialize an object using the Java serialization mechanisms. |
byte[] |
serialize(Object obj)
Serialize an object using the Java serialization mechanisms. |
| Method Detail |
|---|
byte[] serialize(Object obj)
obj - A Serializable object.
Object deserialize(byte[] b)
b - A byte[] containing a serialized object.
Object deserialize(byte[] b,
int off,
int len)
b - A byte[] containing a serialized object.off - The offset of the first byte to de-serialize.len - The #of bytes in the object record.
Object deserialize(ByteBuffer buf)
buf - A buffer containing a serialized object. The bytes from
Buffer.position() to Buffer.limit()
will be de-serialized and the position will be advanced to the
limit.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||