jadex.standalone.transport.codecs
Class JadexXMLCodec

java.lang.Object
  extended by jadex.standalone.transport.codecs.JadexXMLCodec
All Implemented Interfaces:
IDecoder, IEncoder

public class JadexXMLCodec
extends Object
implements IEncoder, IDecoder

The Jadex XML codec. Codec supports parallel calls of multiple concurrent clients (no method synchronization necessary).


Field Summary
static byte CODEC_ID
          The nuggets codec id.
protected  boolean DEBUG
          The debug flag.
 
Constructor Summary
JadexXMLCodec()
           
 
Method Summary
 Object decode(byte[] bytes, ClassLoader classloader)
          Decode an object.
 byte[] encode(Object val, ClassLoader classloader)
          Encode an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEC_ID

public static final byte CODEC_ID
The nuggets codec id.

See Also:
Constant Field Values

DEBUG

protected boolean DEBUG
The debug flag.

Constructor Detail

JadexXMLCodec

public JadexXMLCodec()
Method Detail

encode

public byte[] encode(Object val,
                     ClassLoader classloader)
Encode an object.

Specified by:
encode in interface IEncoder
Parameters:
obj - The object.
Returns:
The encoded object.
Throws:
IOException

decode

public Object decode(byte[] bytes,
                     ClassLoader classloader)
Decode an object.

Specified by:
decode in interface IDecoder
Parameters:
bytes - The value bytes.
Returns:
The decoded object.
Throws:
IOException


Copyright © 2010. All Rights Reserved.