Package javanet.staxutils
Class XMLStreamEventReader
java.lang.Object
javanet.staxutils.XMLStreamEventReader
- All Implemented Interfaces:
Iterator<Object>,XMLEventReader
- Version:
- $Revision: 1.3 $
- Author:
- Christian Niles
-
Constructor Summary
ConstructorsConstructorDescriptionXMLStreamEventReader(XMLStreamReader reader) XMLStreamEventReader(XMLStreamReader reader, XMLEventAllocator allocator) -
Method Summary
Modifier and TypeMethodDescriptionprotected XMLEventReads the next event from the underlying reader.voidclose()getProperty(String name) No properties are supported, so this always throwsIllegalArgumentException.booleanhasNext()next()nextTag()peek()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
XMLStreamEventReader
-
XMLStreamEventReader
-
-
Method Details
-
getProperty
No properties are supported, so this always throwsIllegalArgumentException.- Specified by:
getPropertyin interfaceXMLEventReader- Throws:
IllegalArgumentException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<Object>- Specified by:
hasNextin interfaceXMLEventReader
-
nextTag
- Specified by:
nextTagin interfaceXMLEventReader- Throws:
XMLStreamException
-
getElementText
- Specified by:
getElementTextin interfaceXMLEventReader- Throws:
XMLStreamException
-
nextEvent
- Specified by:
nextEventin interfaceXMLEventReader- Throws:
XMLStreamException
-
peek
- Specified by:
peekin interfaceXMLEventReader- Throws:
XMLStreamException
-
next
-
remove
public void remove() -
close
- Specified by:
closein interfaceXMLEventReader- Throws:
XMLStreamException
-
allocateEvent
Reads the next event from the underlying reader.- Returns:
- The allocated
XMLEvent. - Throws:
XMLStreamException- If an error occurs reading the underlying stream.
-