|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.comm.language.ParserObject
This class handles the encoding and decoding for the BaseObject class.
Field Summary | |
static java.lang.String |
AELFRED_XML_DECODER
The AELFRED SAX XML decoder class is "context.arch.comm.language.SAX_XMLDecoder". |
static boolean |
DEBUG
Debug flag. |
static java.lang.String |
DEFAULT_DECODER
The default decoder class to use is "context.arch.comm.language.SAX_XMLDecoder". |
static java.lang.String |
DEFAULT_ENCODER
The default encoder class to use is "context.arch.comm.language.XMLEncoder". |
static java.lang.String |
XML_ENCODER
The XML encoder class is "context.arch.comm.language.XMLEncoder". |
Constructor Summary | |
ParserObject()
Basic constructor for ParserObject using the default encoder and decoder |
|
ParserObject(java.lang.String encoderClass)
Constructor for ParserObject using the given encoder and default decoder |
|
ParserObject(java.lang.String encoderClass,
java.lang.String decoderClass)
Constructor for ParserObject using the given encoder and decoder class. |
Method Summary | |
DataObject |
decodeData(java.io.Reader message)
This method tries to create a DecoderInterface object and decode the given message in the Reader. |
DataObject |
decodeData(java.lang.String className,
java.io.Reader message)
This method tries to create a DecoderInterface object using the given class name and decode the given message in the Reader. |
java.lang.String |
encodeData(DataObject message)
This method tries to create a EncoderInterface object and encode the given message in the DataObject. |
java.lang.String |
encodeData(java.lang.String className,
DataObject message)
This method tries to create a EncoderInterface object using the given class and encode the given message in the DataObject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean DEBUG
public static final java.lang.String DEFAULT_DECODER
public static final java.lang.String AELFRED_XML_DECODER
public static final java.lang.String DEFAULT_ENCODER
public static final java.lang.String XML_ENCODER
Constructor Detail |
public ParserObject()
DEFAULT_ENCODER
,
DEFAULT_DECODER
public ParserObject(java.lang.String encoderClass)
encoderClass
- class to use for encodingDEFAULT_DECODER
public ParserObject(java.lang.String encoderClass, java.lang.String decoderClass)
encoderClass
- Encoder class to use for encodingDEFAULT_ENCODER
,
DEFAULT_DECODER
Method Detail |
public DataObject decodeData(java.io.Reader message) throws DecodeException, InvalidDecoderException
message
- Reader containing a message to be decoded
DecodeException
- if the message can't be decoded
InvalidDecoderException
- if the decoder can't be createdDecoderInterface.decodeData(Reader)
public DataObject decodeData(java.lang.String className, java.io.Reader message) throws DecodeException, InvalidDecoderException
className
- Class to use to instantiate a decodermessage
- Reader containing a message to be decoded
DecodeException
- if the message can't be decoded
InvalidDecoderException
- if the decoder can't be createdDecoderInterface.decodeData(Reader)
public java.lang.String encodeData(DataObject message) throws EncodeException, InvalidEncoderException
message
- DataObject containing a message to be encoded
EncodeException
- if the message can't be encoded
InvalidEncoderException
- if the encoder can't be createdEncoderInterface.encodeData(DataObject)
public java.lang.String encodeData(java.lang.String className, DataObject message) throws EncodeException, InvalidEncoderException
className
- Class to use to instantiate a encodermessage
- DataObject containing a message to be encoded
EncodeException
- if the message can't be encoded
InvalidEncoderException
- if the encoder can't be createdEncoderInterface.encodeData(DataObject)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |