de.trantor.xml.pullparser
Interface PullParser

All Known Implementing Classes:
SaxPullParser

public interface PullParser

An interface definition for a parser that can be pulled for document events.

The package name of this interface may change.


Method Summary
 ParseEvent peek()
          reads the next event available from the parser without consuming it
 int peekType()
          queries the type of the next parsing event.
 ParseEvent read()
          reads the next event available from the parser.
 

Method Detail

read

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

peek

public ParseEvent peek()
reads the next event available from the parser without consuming it

peekType

public int peekType()
queries the type of the next parsing event. Types are defined in DocumentEvent. convenience method for peek ().getType (), except that DocumentEvent.END is returned if peek () returns null at the end of a Document.