public class NuggetsCodec
extends java.lang.Object
implements jadex.bridge.service.types.message.ICodec
| Modifier and Type | Field and Description |
|---|---|
static byte |
CODEC_ID
The nuggets codec id.
|
protected static java.lang.reflect.Method |
ofx
ObjectFromXML method.
|
protected static java.lang.reflect.Method |
otx
ObjectToXML method.
|
| Constructor and Description |
|---|
NuggetsCodec() |
| 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 an object.
|
java.lang.Object |
encode(java.lang.Object val,
java.lang.ClassLoader classloader,
jadex.bridge.service.types.message.IEncodingContext context)
Encode an object.
|
byte |
getCodecId()
Get the codec id.
|
static void |
init(java.lang.ClassLoader classloader)
Init the static methods.
|
public static final byte CODEC_ID
protected static java.lang.reflect.Method otx
protected static java.lang.reflect.Method ofx
public byte getCodecId()
getCodecId in interface jadex.bridge.service.types.message.ICodecpublic static void init(java.lang.ClassLoader classloader)
public java.lang.Object encode(java.lang.Object val,
java.lang.ClassLoader classloader,
jadex.bridge.service.types.message.IEncodingContext context)
encode in interface jadex.bridge.service.types.message.ICodecobj - The object.java.io.IOExceptionpublic 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.ICodecjava.io.IOException