public interface Serializer
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserializeFromBytes(byte[] serializedObject)
Deserialize an object from an array of bytes.
|
byte[] |
serializeToBytes(java.lang.Object object)
Serialize an object to an array of bytes.
|
byte[] serializeToBytes(java.lang.Object object) throws java.io.IOException
object
- The object to serialize.java.io.IOException
java.lang.Object deserializeFromBytes(byte[] serializedObject) throws java.io.IOException, java.lang.ClassNotFoundException
serializedObject
- Array of bytes containing a serialized object.java.io.IOException
java.lang.ClassNotFoundException