public class JavaSerializationConverter extends Object implements Converter<Object>
ConvertedBy
annotation.
If you register it as a serialization converter, it will catch all types.
Or you could extend it and override type()
.Constructor and Description |
---|
JavaSerializationConverter() |
Modifier and Type | Method and Description |
---|---|
protected Object |
deserializeJava(byte[] bytes) |
Object |
fromString(String string)
Revert.
|
protected byte[] |
serializeJava(Object object) |
String |
toString(Object object)
Convert.
|
Class<Object> |
type() |
public String toString(Object object)
Converter
public Object fromString(String string)
Converter
fromString
in interface Converter<Object>
string
- the String to convert back to T
T
protected byte[] serializeJava(Object object)
protected Object deserializeJava(byte[] bytes)