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)
Serializer
serialized data
back to the corresponding
Object
.deserialize
in interface Serializer
data
- is the serialized data
.public byte[] serialize(Object object)
Serializer
Object
to serialized data.serialize
in interface Serializer
object
- 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.