public class LongSerializer extends Object implements Serializer
| Modifier and Type | Field and Description |
|---|---|
static LongSerializer |
INSTANCE |
| Constructor and Description |
|---|
LongSerializer()
Construct a LongSerializer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] serialized)
Deserialize the content of an object from a byte array.
|
byte[] |
serialize(Object obj)
Serialize the content of an object into a byte array.
|
public static final LongSerializer INSTANCE
public byte[] serialize(Object obj) throws IOException
serialize in interface Serializerobj - Object to serializeIOExceptionpublic Object deserialize(byte[] serialized) throws IOException
deserialize in interface Serializerserialized - Byte array representation of the objectIOExceptionCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.