public class SAXOutput
extends java.lang.Object
| Constructor and Description |
|---|
SAXOutput(org.xml.sax.ContentHandler contentHandler)
Creates a new SAX output that fires its events a SAX content handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireEvtChars(java.lang.String chars)
Fires SAX event for characters.
|
protected void |
fireEvtElements(java.util.List elements)
Fires events for a list of NodesElements.
|
protected void |
fireEvtNode(Node node)
Fires SAX events for a node (without startDocument and endDocument).
|
protected java.lang.String |
getNsUri(java.lang.String nsPrefix)
Gets the URI of a namespace prefix.
|
void |
run(Node root)
Start firing SAX events.
|
public SAXOutput(org.xml.sax.ContentHandler contentHandler)
contentHandler - SAX content handler.public void run(Node root) throws org.xml.sax.SAXException
root - Root node.org.xml.sax.SAXExceptionprotected java.lang.String getNsUri(java.lang.String nsPrefix)
throws org.xml.sax.SAXException
nsPrefix - Prefix of namespace.org.xml.sax.SAXException - If URI was not defined.protected void fireEvtNode(Node node) throws org.xml.sax.SAXException
node - XML node.org.xml.sax.SAXExceptionprotected void fireEvtElements(java.util.List elements)
throws org.xml.sax.SAXException
elements - List of NodeElements.org.xml.sax.SAXExceptionprotected void fireEvtChars(java.lang.String chars)
throws org.xml.sax.SAXException
chars - Characters.org.xml.sax.SAXException© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.