jadex.standalone.transport.codecs
Class XMLCodec
java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CODEC_ID
public static final byte CODEC_ID
- The xml codec id.
- See Also:
- Constant Field Values
XMLCodec
public XMLCodec()
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.