Package javanet.staxutils.helpers
Class ListEventReader
- java.lang.Object
-
- javanet.staxutils.BaseXMLEventReader
-
- javanet.staxutils.helpers.ListEventReader
-
- All Implemented Interfaces:
Iterator<Object>,XMLEventReader
public class ListEventReader extends BaseXMLEventReader
XMLEventReaderthat reads events from aList.- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
-
Field Summary
-
Fields inherited from class javanet.staxutils.BaseXMLEventReader
closed
-
-
Constructor Summary
Constructors Constructor Description ListEventReader(List events)Constructs aListEventReaderthat reads events from the providedList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()XMLEventnextEvent()XMLEventpeek()-
Methods inherited from class javanet.staxutils.BaseXMLEventReader
close, getElementText, getProperty, next, nextTag, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Throws:
XMLStreamException
-
hasNext
public boolean hasNext()
-
peek
public XMLEvent peek() throws XMLStreamException
- Throws:
XMLStreamException
-
-