T - the class type which can be serialized / deserialized.public interface Codec<T>
| Modifier and Type | Method and Description |
|---|---|
T |
decode(byte[] data)
Returns the deserialized object represented in the given
byte[]. |
byte[] |
encode(T object)
Returns the serialized form of the given object as a
byte[]. |
byte[] encode(T object) throws IOException
byte[].IOExceptionT decode(byte[] data) throws IOException
byte[].IOExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.