public class XMLStreamEventReader extends Object implements XMLEventReader
| Constructor and Description |
|---|
XMLStreamEventReader(XMLStreamReader reader) |
XMLStreamEventReader(XMLStreamReader reader,
XMLEventAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
protected XMLEvent |
allocateEvent()
Reads the next event from the underlying reader.
|
void |
close() |
String |
getElementText() |
Object |
getProperty(String name)
No properties are supported, so this always throws
IllegalArgumentException. |
boolean |
hasNext() |
Object |
next() |
XMLEvent |
nextEvent() |
XMLEvent |
nextTag() |
XMLEvent |
peek() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic XMLStreamEventReader(XMLStreamReader reader)
public XMLStreamEventReader(XMLStreamReader reader, XMLEventAllocator allocator)
public Object getProperty(String name) throws IllegalArgumentException
IllegalArgumentException.getProperty in interface XMLEventReaderIllegalArgumentExceptionpublic boolean hasNext()
hasNext in interface IteratorhasNext in interface XMLEventReaderpublic XMLEvent nextTag() throws XMLStreamException
nextTag in interface XMLEventReaderXMLStreamExceptionpublic String getElementText() throws XMLStreamException
getElementText in interface XMLEventReaderXMLStreamExceptionpublic XMLEvent nextEvent() throws XMLStreamException
nextEvent in interface XMLEventReaderXMLStreamExceptionpublic XMLEvent peek() throws XMLStreamException
peek in interface XMLEventReaderXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLEventReaderXMLStreamExceptionprotected XMLEvent allocateEvent() throws XMLStreamException
XMLEvent.XMLStreamException - If an error occurs reading the underlying stream.Copyright © 2019. All rights reserved.