public class DefaultNodeSerializer extends Object implements Serializer<DefaultNode>
Constructor and Description |
---|
DefaultNodeSerializer() |
Modifier and Type | Method and Description |
---|---|
DefaultNode |
deserialize(byte[] serialization)
REstores an object from its serialization
|
byte[] |
serialize(DefaultNode subject)
Serializes the subject.
|
public byte[] serialize(DefaultNode subject)
Serializer
serialize
in interface Serializer<DefaultNode>
subject
- subject to serializesubject
public DefaultNode deserialize(byte[] serialization) throws IllegalArgumentException
Serializer
deserialize
in interface Serializer<DefaultNode>
serialization
- serializationIllegalArgumentException
- error during deserializationCopyright © 2015. All Rights Reserved.