|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object voldemort.serialization.ObjectSerializer<T>
T
- The type of the objectpublic class ObjectSerializer<T>
Transform java objects into bytes using java's built in serialization mechanism
Constructor Summary | |
---|---|
ObjectSerializer()
|
Method Summary | |
---|---|
byte[] |
toBytes(T object)
Transform the given object into an array of bytes |
T |
toObject(byte[] bytes)
Transform the given bytes into an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectSerializer()
Method Detail |
---|
public byte[] toBytes(T object)
toBytes
in interface Serializer<T>
object
- The object to be serialized
public T toObject(byte[] bytes)
toObject
in interface Serializer<T>
bytes
- The bytes to construct the object from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |