T
- type of the object to serializepublic interface Serializer<T>
Modifier and Type | Method and Description |
---|---|
T |
deserialize(byte[] serialization)
REstores an object from its serialization
|
byte[] |
serialize(T subject)
Serializes the subject.
|
byte[] serialize(T subject)
subject
- subject to serializesubject
T deserialize(byte[] serialization) throws IllegalArgumentException
serialization
- serializationIllegalArgumentException
- error during deserializationCopyright © 2015. All Rights Reserved.