public class JavaSerializer extends Object implements Serializer
Serializer using the standard serialization mechanism of Java.| Constructor and Description |
|---|
JavaSerializer()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] data)
De-serializes (or un-marshals) the given
serialized data back to the corresponding
Object. |
byte[] |
serialize(Object object)
Serializes (or marshals) the given
Object to serialized data. |
public Object deserialize(byte[] data)
Serializerserialized data back to the corresponding
Object.deserialize in interface Serializerdata - is the serialized data.public byte[] serialize(Object object)
SerializerObject to serialized data.serialize in interface Serializerobject - is the Object to serialize. May be null.Object. We use byte[] to allow
arbitrary data including any binary format. However, this can also be a String encoded e.g. in
UTF-8.Copyright © 2001–2016 mmm-Team. All rights reserved.