Constructor and Description |
---|
SerializingConverter()
Create a default
SerializingConverter that uses standard Java serialization. |
SerializingConverter(Serializer<Object> serializer)
Create a
SerializingConverter that delegates to the provided Serializer . |
Modifier and Type | Method and Description |
---|---|
byte[] |
convert(Object source)
Serializes the source object and returns the byte array result.
|
public SerializingConverter()
SerializingConverter
that uses standard Java serialization.public SerializingConverter(Serializer<Object> serializer)
SerializingConverter
that delegates to the provided Serializer
.public byte[] convert(Object source)