Save This Page
Home » dom4j-1.6.1 » org.dom4j.io » [javadoc | source]
org.dom4j.io
class: PruningElementStack [javadoc | source]
java.lang.Object
   org.dom4j.io.ElementStack
      org.dom4j.io.PruningElementStack

All Implemented Interfaces:
    ElementPath

PruningElementStack is a stack of Element instances which will prune the tree when a path expression is reached. This is useful for parsing very large documents where children of the root element can be processed individually rather than keeping them all in memory at the same time.

Fields inherited from org.dom4j.io.ElementStack:
stack,  lastElementIndex
Constructor:
 public PruningElementStack(String[] path,
    ElementHandler elementHandler) 
 public PruningElementStack(String[] path,
    ElementHandler elementHandler,
    int defaultCapacity) 
Method from org.dom4j.io.PruningElementStack Summary:
pathMatches,   popElement,   validElement
Methods from org.dom4j.io.ElementStack:
addHandler,   clear,   containsHandler,   getCurrent,   getDispatchHandler,   getElement,   getPath,   peekElement,   popElement,   pushElement,   reallocate,   removeHandler,   setDispatchHandler,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.io.PruningElementStack Detail:
 protected  void pathMatches(Element parent,
    Element selectedNode) 
 public Element popElement() 
 protected boolean validElement(Element element,
    int index)