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 |
|---|---|
java.lang.Object |
decode(java.lang.Object bytes,
java.lang.ClassLoader classloader,
jadex.commons.transformation.binaryserializer.IErrorReporter rep)
Decode data with the codec.
|
java.lang.Object |
encode(java.lang.Object val,
java.lang.ClassLoader classloader,
IEncodingContext context)
Encode data with the codec.
|
byte |
getCodecId()
Get the codec id.
|
static final java.lang.String CODEC_ID
byte getCodecId()
java.lang.Object encode(java.lang.Object val,
java.lang.ClassLoader classloader,
IEncodingContext context)
val - The value.java.lang.Object decode(java.lang.Object bytes,
java.lang.ClassLoader classloader,
jadex.commons.transformation.binaryserializer.IErrorReporter rep)
bytes - The value bytes as byte array or input stream.