jadex.standalone.transport.codecs
Class XMLCodec

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

public class XMLCodec
extends Object
implements IEncoder, IDecoder

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


Field Summary
static byte CODEC_ID
          The xml codec id.
 
Constructor Summary
XMLCodec()
           
 
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 xml codec id.

See Also:
Constant Field Values
Constructor Detail

XMLCodec

public XMLCodec()
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.