public class JavaXMLContentCodec
extends java.lang.Object
implements jadex.bridge.service.types.message.IContentCodec, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAVA_XML
The java xml language.
|
Constructor and Description |
---|
JavaXMLContentCodec() |
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 JAVA_XML
public boolean match(java.util.Properties props)
match
in interface jadex.bridge.service.types.message.IContentCodec
props
- 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.IContentCodec
val
- 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.IContentCodec
val
- The string value.