public interface JavaObjectSerializer
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(byte[] bytes)
Deserialize object from byte array.
|
byte[] |
serialize(java.lang.Object obj)
Serialize object to byte array.
|
byte[] serialize(java.lang.Object obj) throws java.lang.Exception
obj
- the object to serializejava.lang.Exception
- on failurejava.lang.Object deserialize(byte[] bytes) throws java.lang.Exception
bytes
- the byte array of the serialized objectjava.lang.Exception
- on failure