|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.helper.IntegerSerializer
public class IntegerSerializer
Optimized serializer for integers.
Field Summary | |
---|---|
static IntegerSerializer |
INSTANCE
|
Constructor Summary | |
---|---|
IntegerSerializer()
Construct an IntegerSerializer. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IntegerSerializer INSTANCE
Constructor Detail |
---|
public IntegerSerializer()
Method Detail |
---|
public byte[] serialize(java.lang.Object obj) throws java.io.IOException
serialize
in interface Serializer
obj
- Object to serialize
java.io.IOException
public java.lang.Object deserialize(byte[] serialized) throws java.io.IOException
deserialize
in interface Serializer
serialized
- Byte array representation of the object
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |