public interface StoreSerializer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(byte[] bytes)
Deserializes the specified bytes into an object.
|
<T> T |
decode(ByteBuffer buffer)
Deserializes the specified bytes into an object.
|
<T> T |
decode(InputStream stream)
Deserializes the specified bytes into an object.
|
byte[] |
encode(Object obj)
Serializes the specified object into bytes.
|
void |
encode(Object obj,
ByteBuffer buffer)
Serializes the specified object into bytes.
|
void |
encode(Object obj,
OutputStream stream)
Serializes the specified object into bytes.
|
byte[] encode(Object obj)
obj - object to be serializedvoid encode(Object obj, ByteBuffer buffer)
obj - object to be serializedbuffer - to write serialized bytesvoid encode(Object obj, OutputStream stream)
obj - object to be serializedstream - to write serialized bytes<T> T decode(byte[] bytes)
T - decoded typebytes - bytes to be deserialized<T> T decode(ByteBuffer buffer)
T - decoded typebuffer - bytes to be deserialized<T> T decode(InputStream stream)
T - decoded typestream - stream containing the bytes to be deserializedCopyright © 2015. All rights reserved.