|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.cyberneko.pull.util.EventIterator
This class contains a set of utility functions to allow applications
to more conveniently iterate XML events instead of having to call
nextEvent for each event in the event stream.
Note:
Currently, the XMLEventIterator interface only contains
the single, low-level nextToken method for iterating XML
events. The EventIterator utility class is provided to
handle this shortcoming. As this API progresses, it is believed that
additional methods will be added to the XMLEventIterator
interface. However, this will be decided by actual users of the API.
Please let me know if you have
any suggestions or comments.
| Field Summary | |
protected int |
fElementDepth
Element depth. |
protected XMLEventIterator |
fEventIterator
XML event iterator. |
protected XMLEvent |
fPushbackEvent
Pushback event. |
| Constructor Summary | |
EventIterator(XMLEventIterator iterator)
Constructs an event iterator from the specified event iterator. |
|
| Method Summary | |
XMLEvent |
nextEvent()
Returns the next event. |
XMLEvent |
nextEvent(short type)
Returns the nextEvent of the given type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected XMLEventIterator fEventIterator
protected XMLEvent fPushbackEvent
protected int fElementDepth
| Constructor Detail |
public EventIterator(XMLEventIterator iterator)
| Method Detail |
public XMLEvent nextEvent()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
nextEvent in interface XMLEventIteratororg.apache.xerces.xni.XNIException - Any XNI exception, possibly wrapping
another exception.
java.io.IOException - An IO exception from the parser, possibly
from a byte stream or character stream
supplied by the parser.
public XMLEvent nextEvent(short type)
throws java.io.IOException,
org.apache.xerces.xni.XNIException
java.io.IOException
org.apache.xerces.xni.XNIException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||