|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjdbm.helper.ByteArraySerializer
Serializer for byte arrays -- simple returns the byte array itself. No actual serialization is performed.
| Field Summary | |
static ByteArraySerializer |
INSTANCE
Static instance. |
(package private) static long |
serialVersionUID
Version id for serialization. |
| Constructor Summary | |
ByteArraySerializer()
|
|
| 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 |
static final long serialVersionUID
public static final ByteArraySerializer INSTANCE
| Constructor Detail |
public ByteArraySerializer()
| Method Detail |
public byte[] serialize(java.lang.Object obj)
throws java.io.IOException
serialize in interface Serializerobj - Object to serialize
java.io.IOException
public java.lang.Object deserialize(byte[] serialized)
throws java.io.IOException
deserialize in interface Serializerserialized - 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 | ||||||||