|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 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 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
DEFAULT_SAX_XML_DECODER
Method Detail |
public DataObject decodeData(java.io.Reader XMLdata) throws DecodeException
XMLdata
- XML data to be decodedParser.parse(InputSource)
public java.lang.String getLanguage()
LANGUAGE
public java.lang.String getClassName()
public void startDocument()
DataObject
public void endDocument()
public void startElement(java.lang.String name, org.xml.sax.AttributeList attributes)
name
- String name of new elementattributes
- AttributeList object containing attributes for new elementDataObject.addElement(String,Hashtable)
public void endElement(java.lang.String name)
name
- String name of ended elementDataObject.closeElement(String)
public void characters(char[] ch, int start, int length)
ch
- 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |