public class StAXEventReader extends Object implements javax.xml.stream.XMLEventReader
Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.util.XMLEventAllocator |
_eventAllocator |
protected javax.xml.stream.XMLStreamReader |
_streamReader |
Constructor and Description |
---|
StAXEventReader(javax.xml.stream.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() |
javax.xml.stream.events.XMLEvent |
nextEvent() |
javax.xml.stream.events.XMLEvent |
nextTag()
Skips any insignificant space events until a START_ELEMENT or
END_ELEMENT is reached.
|
javax.xml.stream.events.XMLEvent |
peek() |
void |
remove() |
void |
setAllocator(javax.xml.stream.util.XMLEventAllocator allocator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected javax.xml.stream.XMLStreamReader _streamReader
protected javax.xml.stream.util.XMLEventAllocator _eventAllocator
public StAXEventReader(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface javax.xml.stream.XMLEventReader
public javax.xml.stream.events.XMLEvent nextEvent() throws javax.xml.stream.XMLStreamException
nextEvent
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public String getElementText() throws javax.xml.stream.XMLStreamException
getElementText
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
- 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 javax.xml.stream.XMLEventReader
name
- The name of the propertyIllegalArgumentException
- if the property is not supportedpublic javax.xml.stream.events.XMLEvent nextTag() throws javax.xml.stream.XMLStreamException
nextTag
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
- if anything other than space characters are encounteredpublic javax.xml.stream.events.XMLEvent peek() throws javax.xml.stream.XMLStreamException
peek
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public void setAllocator(javax.xml.stream.util.XMLEventAllocator allocator)
Copyright © 2017 Oracle Corpration. All rights reserved.