public class XMLEventReaderImpl extends Object implements XMLEventReader
| Modifier and Type | Field and Description |
|---|---|
protected XMLEventAllocator |
fXMLEventAllocator |
protected XMLStreamReader |
fXMLReader |
| Constructor and Description |
|---|
XMLEventReaderImpl(XMLStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getElementText()
Reads the content of a text-only element.
|
Object |
getProperty(String name)
Get the value of a feature/property from the underlying implementation
|
boolean |
hasNext() |
Object |
next() |
XMLEvent |
nextEvent() |
XMLEvent |
nextTag()
Skips any insignificant space events until a START_ELEMENT or
END_ELEMENT is reached.
|
XMLEvent |
peek() |
void |
remove() |
protected XMLStreamReader fXMLReader
protected XMLEventAllocator fXMLEventAllocator
public XMLEventReaderImpl(XMLStreamReader reader) throws XMLStreamException
XMLStreamExceptionpublic boolean hasNext()
hasNext in interface IteratorhasNext in interface XMLEventReaderpublic XMLEvent nextEvent() throws XMLStreamException
nextEvent in interface XMLEventReaderXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLEventReaderXMLStreamExceptionpublic String getElementText() throws XMLStreamException
getElementText in interface XMLEventReaderXMLStreamException - if the current event is not a START_ELEMENT
or if a non text element is encounteredpublic Object getProperty(String name) throws IllegalArgumentException
getProperty in interface XMLEventReadername - The name of the propertyIllegalArgumentException - if the property is not supportedpublic XMLEvent nextTag() throws XMLStreamException
nextTag in interface XMLEventReaderXMLStreamException - if anything other than space characters are encounteredpublic XMLEvent peek() throws XMLStreamException
peek in interface XMLEventReaderXMLStreamExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.