Package org.htmlcleaner
Class XmlTraversor
- java.lang.Object
-
- org.htmlcleaner.XmlTraversor
-
public class XmlTraversor extends java.lang.Object
Depth-first node traversor. Use to iterate through all nodes under and including the specified root node.This implementation does not use recursion, so a deep DOM does not risk blowing the stack.
-
-
Field Summary
Fields Modifier and Type Field Description private XmlVisitor
visitor
-
Constructor Summary
Constructors Constructor Description XmlTraversor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
traverse(XmlVisitor visitor, HtmlNode root)
Start a depth-first traverse of the root and all of its descendants.
-
-
-
Field Detail
-
visitor
private XmlVisitor visitor
-
-
Method Detail
-
traverse
public static void traverse(XmlVisitor visitor, HtmlNode root)
Start a depth-first traverse of the root and all of its descendants.- Parameters:
visitor
- Node visitor.root
- the root node point to traverse.
-
-