public interface Transcoder
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(byte[] encoded)
Decode the object from bytes.
|
byte[] |
encode(java.lang.Object value)
Encode the object to bytes.
|
byte[] encode(java.lang.Object value)
throws TranscodeException,
java.io.IOException
value - the value to encode.java.io.IOExceptionTranscodeExceptionjava.lang.Object decode(byte[] encoded)
throws TranscodeException
encoded - the encoded bytes.java.io.IOExceptioncom.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonParseExceptionjava.lang.ClassNotFoundExceptionTranscodeException