|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.HandlerBase
context.arch.comm.language.SAX_XMLDecoder
This class provides access to the SAX XML parsing code using the specified XML parser class/driver. It implements ParserInterface and extends HandlerBase
DecoderInterface,
HandlerBase| Field Summary | |
static java.lang.String |
AELFRED_SAX_XML_DECODER
The AElfred SAX XML decoder |
static boolean |
DEBUG
Debug flag. |
static java.lang.String |
DEFAULT_SAX_XML_DECODER
The default SAX XML decoder is com.microstar.xml.SAXDriver (AElfred) |
static java.lang.String |
LANGUAGE
The language for this class is XML |
| Constructor Summary | |
SAX_XMLDecoder()
Basic constructor which uses the default XML parser and sets the document handler to this class |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive notification of non-element and non-attribute characters ignoring whitespace. |
DataObject |
decodeData(java.io.Reader XMLdata)
This method decodes the given XML data and returns the result in a DataObject. |
void |
endDocument()
Receive notification of the end of the document. |
void |
endElement(java.lang.String name)
Receive notification of the end of an element. |
java.lang.String |
getClassName()
Returns the name of the parser driver being used for encoding and decoding |
java.lang.String |
getLanguage()
Returns the language being used in encoding and decoding |
void |
startDocument()
Receive notification of the beginning of the document. |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
Receive notification of the start of a new element. |
| Methods inherited from class org.xml.sax.HandlerBase |
error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, unparsedEntityDecl, warning |
| 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_SAX_XML_DECODER
public static final java.lang.String AELFRED_SAX_XML_DECODER
public static final java.lang.String LANGUAGE
| Constructor Detail |
public SAX_XMLDecoder()
throws InvalidDecoderException
InvalidDecoderException - when the
given decoder can not be createdDEFAULT_SAX_XML_DECODER| Method Detail |
public DataObject decodeData(java.io.Reader XMLdata)
throws DecodeException
decodeData in interface DecoderInterfaceXMLdata - XML data to be decoded
DecodeException - when the
given XML data can not be decodedParser.parse(InputSource)public java.lang.String getLanguage()
getLanguage in interface DecoderInterfaceLANGUAGEpublic java.lang.String getClassName()
getClassName in interface DecoderInterfacepublic void startDocument()
startDocument in interface org.xml.sax.DocumentHandlerDataObjectpublic void endDocument()
endDocument in interface org.xml.sax.DocumentHandler
public void startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
startElement in interface org.xml.sax.DocumentHandlername - String name of new elementattributes - AttributeList object containing attributes for new elementDataObject.addElement(String,Hashtable)public void endElement(java.lang.String name)
endElement in interface org.xml.sax.DocumentHandlername - String name of ended elementDataObject.closeElement(String)
public void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.DocumentHandlerch - array of characters read instart - start position in the arraylength - number of characters to read in from the arrayDataObject.addValue(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||