Interface Codec
- All Known Implementing Classes:
EoCodec
,JavaCodec
,PlainLongCodec
public interface Codec
Classes that can transform objects to byte arrays and vice versa.
- Since:
- 0.8
-
Method Summary
-
Method Details
-
encode
Encodes an object to a byte array.- Parameters:
object
- Object.type
- Data type.- Returns:
- Byte array.
-
decode
Decodes a byte array to an object.- Parameters:
bytes
- Byte array.type
- Data type.- Returns:
- Object.
-