public interface ICodec
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODEC_ID
Constant for accessing the codec id.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] bytes)
Decode data with the codec.
|
byte[] |
decode(byte[] bytes,
int offset,
int length)
Decode data with the codec.
|
byte[] |
encode(byte[] val)
Encode data with the codec.
|
int |
getCodecId()
Get the codec id.
|
static final java.lang.String CODEC_ID
int getCodecId()
byte[] encode(byte[] val)
val
- The value.byte[] decode(byte[] bytes)
bytes
- The value bytes as byte array or input stream.byte[] decode(byte[] bytes, int offset, int length)
bytes
- The value bytes as byte array or input stream.