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