org.codehaus.stax2
Interface XMLEventReader2

All Superinterfaces:
java.util.Iterator, javax.xml.stream.XMLEventReader
All Known Implementing Classes:
WstxEventReader

public interface XMLEventReader2
extends javax.xml.stream.XMLEventReader

Extended interface that implements functionality that is missing from XMLEventReader, based on findings on trying to implement StAX API v1.0.


Method Summary
 boolean hasNextEvent()
          Method that is similar to XMLEventReader.hasNext(), except that it can throw a XMLStreamException.
 
Methods inherited from interface javax.xml.stream.XMLEventReader
close, getElementText, getProperty, hasNext, nextEvent, nextTag, peek
 
Methods inherited from interface java.util.Iterator
next, remove
 

Method Detail

hasNextEvent

boolean hasNextEvent()
                     throws javax.xml.stream.XMLStreamException
Method that is similar to XMLEventReader.hasNext(), except that it can throw a XMLStreamException. This is important distinction, since the underlying stream reader is allowed to throw such an exception when its hasNext() gets called.

Throws:
javax.xml.stream.XMLStreamException