public class SerialCodec
extends java.lang.Object
implements jadex.bridge.service.types.message.ICodec
Modifier and Type | Field and Description |
---|---|
static byte |
CODEC_ID
The serial codec id.
|
Constructor and Description |
---|
SerialCodec() |
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 object,
java.lang.ClassLoader classloader,
jadex.bridge.service.types.message.IEncodingContext context)
Encode data with the codec.
|
byte |
getCodecId()
Get the codec id.
|
public static final byte CODEC_ID
public byte getCodecId()
getCodecId
in interface jadex.bridge.service.types.message.ICodec
public java.lang.Object encode(java.lang.Object object, java.lang.ClassLoader classloader, jadex.bridge.service.types.message.IEncodingContext context)
encode
in interface jadex.bridge.service.types.message.ICodec
val
- The value.public java.lang.Object decode(java.lang.Object bytes, java.lang.ClassLoader classloader, jadex.commons.transformation.binaryserializer.IErrorReporter rep)
decode
in interface jadex.bridge.service.types.message.ICodec
val
- The string value.