public interface Serializer extends Serializable
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(byte[] serialized)
Deserialize the content of an object from a byte array.
|
byte[] |
serialize(Object obj)
Serialize the content of an object into a byte array.
|
byte[] serialize(Object obj) throws IOException
obj
- Object to serializeIOException
Object deserialize(byte[] serialized) throws IOException
serialized
- Byte array representation of the objectIOException
Copyright © 2017. All rights reserved.