| Modifier and Type | Field and Description |
|---|---|
| private ContentHandler | m_contentHandler
Local reference to a ContentHandler |
| protected DTM | m_dtm
DomHelper for this TreeWalker |
| pack-priv boolean | nextIsRaw
Flag indicating whether following text to be processed is raw text |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DTMTreeWalker(ContentHandler
The implemention of the
contentHandler operation (toXMLString, digest, ...) contentHandler, DTM dtm)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private final void | |
| protected void | |
| public ContentHandler | Returns: the ContentHandler used for the tree walkGet the ContentHandler used for the tree walk. |
| public void | setcontentHandler(ContentHandler
the ContentHandler to be the result of the tree walk. ch)Set the ContentHandler used for the tree walk. |
| public void | |
| protected void | |
| public void | traverse(int
Node in the tree at which to start (and end) traversal --
in other words, the root of the subtree to traverse over. pos)Perform a non-recursive pre-order/post-order traversal, operating as a Visitor. |
| public void | traverse(int
Node in the tree where to start traversal pos, int Node in the tree where to end traversal.
If top==DTM.NULL, run through end of document. top)Perform a non-recursive pre-order/post-order traversal, operating as a Visitor. |
| m_contentHandler | back to summary |
|---|---|
| private ContentHandler m_contentHandler Local reference to a ContentHandler | |
| m_dtm | back to summary |
|---|---|
| protected DTM m_dtm DomHelper for this TreeWalker | |
| nextIsRaw | back to summary |
|---|---|
| pack-priv boolean nextIsRaw Flag indicating whether following text to be processed is raw text | |
| DTMTreeWalker | back to summary |
|---|---|
| public DTMTreeWalker() Constructor. | |
| DTMTreeWalker | back to summary |
|---|---|
| public DTMTreeWalker(ContentHandler contentHandler, DTM dtm) Constructor.
| |
| dispatachChars | back to summary |
|---|---|
| private final void dispatachChars(int node) throws SAXException Optimized dispatch of characters. | |
| endNode | back to summary |
|---|---|
| protected void endNode(int node) throws SAXException End processing of given node
| |
| getcontentHandler | back to summary |
|---|---|
| public ContentHandler getcontentHandler() Get the ContentHandler used for the tree walk.
| |
| setcontentHandler | back to summary |
|---|---|
| public void setcontentHandler(ContentHandler ch) Set the ContentHandler used for the tree walk.
| |
| setDTM | back to summary |
|---|---|
| public void setDTM(DTM dtm) Set the DTM to be traversed.
| |
| startNode | back to summary |
|---|---|
| protected void startNode(int node) throws SAXException Start processing given node
| |
| traverse | back to summary |
|---|---|
| public void traverse(int pos) throws SAXException Perform a non-recursive pre-order/post-order traversal, operating as a Visitor. startNode (preorder) and endNode (postorder) are invoked for each node as we traverse over them, with the result that the node is written out to m_contentHandler.
| |
| traverse | back to summary |
|---|---|
| public void traverse(int pos, int top) throws SAXException Perform a non-recursive pre-order/post-order traversal, operating as a Visitor. startNode (preorder) and endNode (postorder) are invoked for each node as we traverse over them, with the result that the node is written out to m_contentHandler.
| |