public class TestCodec
extends java.lang.Object
implements jadex.bridge.service.types.message.IContentCodec, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TEST_LANGUAGE
The language identifier.
|
| Constructor and Description |
|---|
TestCodec() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decode(byte[] val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
jadex.commons.transformation.binaryserializer.IErrorReporter rep)
Decode data with the codec.
|
byte[] |
encode(java.lang.Object val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
jadex.bridge.service.types.message.IEncodingContext context)
Encode data with the codec.
|
boolean |
match(java.util.Properties props)
Test if the codec can be used with the provided meta information.
|
public static final java.lang.String TEST_LANGUAGE
public boolean match(java.util.Properties props)
match in interface jadex.bridge.service.types.message.IContentCodecprops - The meta information.public byte[] encode(java.lang.Object val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
jadex.bridge.service.types.message.IEncodingContext context)
encode in interface jadex.bridge.service.types.message.IContentCodecval - The value.public java.lang.Object decode(byte[] val,
java.lang.ClassLoader classloader,
java.util.Map<java.lang.Class<?>,java.lang.Object[]> info,
jadex.commons.transformation.binaryserializer.IErrorReporter rep)
decode in interface jadex.bridge.service.types.message.IContentCodecval - The string value.