org.apache.xml.utils
Class  TreeWalker
java.lang.Object
  |
  +--org.apache.xml.utils.TreeWalker
- Direct Known Subclasses: 
 - TreeWalker2Result
 
- public class TreeWalker
- extends java.lang.Object
  
**For advanced use only** 
 This class does a pre-order walk of the DOM tree, calling a ContentHandler
 interface as it goes.
 
 
| Methods inherited from class java.lang.Object | 
equals, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
TreeWalker
public TreeWalker(ContentHandler contentHandler)
- Constructor.
- Parameters:
 contentHandler - The implemention of the
 contentHandler operation (toXMLString, digest, ...)
 
 
getcontentHandler
public ContentHandler getcontentHandler()
- Get the ContentHandler used for the tree walk.
- Returns:
 - the ContentHandler used for the tree walk
 
 
 
traverse
public void traverse(Node pos)
              throws SAXException
- Perform a pre-order traversal non-recursive style.
- Parameters:
 pos - Node in the tree where to start traversal- Throws:
 - TransformerException -  
 
 
 
traverse
public void traverse(Node pos,
                     Node top)
              throws SAXException
- Perform a pre-order traversal non-recursive style.
- Parameters:
 pos - Node in the tree where to start traversaltop - Node in the tree where to end traversal- Throws:
 - TransformerException -  
 
 
 
Copyright © 2000 Apache XML Project. All Rights Reserved.