public class LongSerializer extends Object implements Serializer
Serializer
for LongsModifier 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
Serializer
serialize
in interface Serializer
o
- Object to serializeIOException
public Object deserialize(byte[] bites) throws IOException
Serializer
deserialize
in interface Serializer
bites
- Byte array representation of the objectIOException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.