public interface Coder
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
decode(java.lang.String archive)
Decode the archive
|
java.lang.String |
encode(java.lang.Object value)
Encode an object
|
java.util.List<java.lang.String> |
getSupportedTypes()
Get a list of all types which are supported for coding and decoding
|
<CustomType,RepresentationType> |
registerType(java.lang.Class<CustomType> type,
ConversionAdaptor<CustomType,RepresentationType> adaptor)
Register the custom type by class and its associated adaptor
|
java.lang.String encode(java.lang.Object value)
java.lang.Object decode(java.lang.String archive)
<CustomType,RepresentationType> void registerType(java.lang.Class<CustomType> type, ConversionAdaptor<CustomType,RepresentationType> adaptor)
java.util.List<java.lang.String> getSupportedTypes()