public class LongSerializer extends Object implements Serializer
Serializer for Longs| Modifier and Type | Field and Description |
|---|---|
static LongSerializer |
INSTANCE |
| Constructor and Description |
|---|
LongSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] bites)
Deserialize the content of an object from a byte array.
|
byte[] |
serialize(Object o)
Serialize the content of an object into a byte array.
|
public static final LongSerializer INSTANCE
public byte[] serialize(Object o) throws IOException
Serializerserialize in interface Serializero - Object to serializeIOExceptionpublic Object deserialize(byte[] bites) throws IOException
Serializerdeserialize in interface Serializerbites - Byte array representation of the objectIOExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.