|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.serialization.ByteArraySerializer
public final class ByteArraySerializer
Constructor Summary | |
---|---|
ByteArraySerializer()
|
Method Summary | |
---|---|
byte[] |
toBytes(ByteArray object)
Construct an array of bytes from the given object |
ByteArray |
toObject(byte[] bytes)
Create an object from an array of bytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArraySerializer()
Method Detail |
---|
public byte[] toBytes(ByteArray object)
Serializer
toBytes
in interface Serializer<ByteArray>
object
- The object
public ByteArray toObject(byte[] bytes)
Serializer
toObject
in interface Serializer<ByteArray>
bytes
- An array of bytes with the objects data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |