org.kxml.kdom
Class TreeParser

java.lang.Object
  extended by org.kxml.parser.AbstractXmlParser
      extended by org.kxml.kdom.TreeParser

public class TreeParser
extends AbstractXmlParser

a pull parser that re-parses a kdom tree.


Field Summary
 
Fields inherited from class org.kxml.parser.AbstractXmlParser
processNamespaces
 
Constructor Summary
TreeParser(Element element, boolean skipRoot)
           
TreeParser(Node node)
           
 
Method Summary
 ParseEvent peek()
          reads the next event available from the parser without consuming it
 ParseEvent read()
          reads the next event available from the parser.
 
Methods inherited from class org.kxml.parser.AbstractXmlParser
getLineNumber, ignoreTree, peek, read, readText, readTree, setProcessNamespaces, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeParser

public TreeParser(Node node)

TreeParser

public TreeParser(Element element,
                  boolean skipRoot)
Method Detail

read

public ParseEvent read()
Description copied from class: AbstractXmlParser
reads the next event available from the parser. If the end of the parsed stream has been reached, null is returned.

Specified by:
read in class AbstractXmlParser

peek

public ParseEvent peek()
Description copied from class: AbstractXmlParser
reads the next event available from the parser without consuming it

Specified by:
peek in class AbstractXmlParser