protected class ODFEngine.PostProcessHandler extends XMLDataHandler
Modifier and Type | Field and Description |
---|---|
protected java.util.Stack<ElementNode> |
stack
An element stack.
|
writer
Constructor and Description |
---|
PostProcessHandler(java.io.Writer writer)
Create SAX handler.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data inside an element.
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Receive notification of the end of an element.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Receive notification of the start of an element.
|
endDocument, startDocument, write, write, write, write, writeAttributes, writeText, writeText, writeText
protected java.util.Stack<ElementNode> stack
public PostProcessHandler(java.io.Writer writer)
writer
- output writerpublic void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class XMLDataHandler
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI or if
Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing is not
being performed.qName
- The qualified name (with prefix), or the empty string if qualified names are not available.attributes
- The attributes attached to the element. If there are no attributes, it shall be an
empty Attributes object.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class XMLDataHandler
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the character array.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class XMLDataHandler
namespaceURI
- The Namespace URI, or the empty string if the element has no Namespace URI or if
Namespace processing is not being performed.localName
- The local name (without prefix), or the empty string if Namespace processing is not
being performed.qName
- The qualified name (with prefix), or the empty string if qualified names are not available.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.Copyright © 2010 - No Magic Asia