public interface ICodec
Modifier and Type | Field and Description |
---|---|
static String |
CODEC_ID
Constant for accessing the codec id.
|
Modifier and Type | Method and Description |
---|---|
Object |
decode(Object bytes,
ClassLoader classloader,
IErrorReporter rep)
Decode data with the codec.
|
Object |
encode(Object val,
ClassLoader classloader,
IEncodingContext context)
Encode data with the codec.
|
byte |
getCodecId()
Get the codec id.
|
static final String CODEC_ID
byte getCodecId()
Object encode(Object val, ClassLoader classloader, IEncodingContext context)
val
- The value.Object decode(Object bytes, ClassLoader classloader, IErrorReporter rep)
bytes
- The value bytes as byte array or input stream.Copyright © 2013. All Rights Reserved.