public class TreeWalker
extends java.lang.Object
Constructor | Description |
---|---|
TreeWalker(org.xml.sax.ContentHandler contentHandler) |
Constructor.
|
TreeWalker(org.xml.sax.ContentHandler contentHandler,
DOMHelper dh) |
Constructor.
|
TreeWalker(org.xml.sax.ContentHandler contentHandler,
DOMHelper dh,
java.lang.String systemId) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
org.xml.sax.ContentHandler |
getContentHandler() |
Get the ContentHandler used for the tree walk.
|
void |
setContentHandler(org.xml.sax.ContentHandler ch) |
Get the ContentHandler used for the tree walk.
|
void |
traverse(org.w3c.dom.Node pos) |
Perform a pre-order traversal non-recursive style.
|
void |
traverse(org.w3c.dom.Node pos,
org.w3c.dom.Node top) |
Perform a pre-order traversal non-recursive style.
|
void |
traverseFragment(org.w3c.dom.Node pos) |
Perform a pre-order traversal non-recursive style.
|
public TreeWalker(org.xml.sax.ContentHandler contentHandler, DOMHelper dh, java.lang.String systemId)
contentHandler
- The implemention of thesystemId
- System identifier for the document.
contentHandler operation (toXMLString, digest, ...)public TreeWalker(org.xml.sax.ContentHandler contentHandler, DOMHelper dh)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)public TreeWalker(org.xml.sax.ContentHandler contentHandler)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)public org.xml.sax.ContentHandler getContentHandler()
public void setContentHandler(org.xml.sax.ContentHandler ch)
public void traverse(org.w3c.dom.Node pos) throws org.xml.sax.SAXException
pos
- Node in the tree where to start traversalTransformerException
org.xml.sax.SAXException
public void traverseFragment(org.w3c.dom.Node pos) throws org.xml.sax.SAXException
pos
- Node in the tree where to start traversalTransformerException
org.xml.sax.SAXException
public void traverse(org.w3c.dom.Node pos, org.w3c.dom.Node top) throws org.xml.sax.SAXException
pos
- Node in the tree where to start traversaltop
- Node in the tree where to end traversalTransformerException
org.xml.sax.SAXException
Copyright ? 2014 Apache XML Project. All Rights Reserved.