public class LongSerializer extends java.lang.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 |
|---|---|
java.lang.Object |
deserialize(byte[] serialized)
Deserialize the content of an object from a byte array.
|
byte[] |
serialize(java.lang.Object obj)
Serialize the content of an object into a byte array.
|
public static final LongSerializer INSTANCE
public byte[] serialize(java.lang.Object obj)
throws java.io.IOException
serialize in interface Serializerobj - Object to serializejava.io.IOExceptionpublic java.lang.Object deserialize(byte[] serialized)
throws java.io.IOException
deserialize in interface Serializerserialized - Byte array representation of the objectjava.io.IOExceptionCees de Groot (C) 2000-2001. All rights reserved http://jdbm.sourceforge.net