public interface XMLEventReader extends java.util.Iterator
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Free any resources associated with this parser.
|
java.lang.String |
getElementText()
Reads the text context of an element.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns the implementation-specific feature or property of the given
name.
|
boolean |
hasNext()
Indicates whether there are more XML events to be read.
|
javax.xml.stream.events.XMLEvent |
nextEvent()
Returns the next XML event.
|
javax.xml.stream.events.XMLEvent |
nextTag()
Returns the next element event.
|
javax.xml.stream.events.XMLEvent |
peek()
Looks at the next XML event without advancing the cursor in the stream.
|
javax.xml.stream.events.XMLEvent nextEvent() throws XMLStreamException
XMLStreamExceptionboolean hasNext()
hasNext in interface java.util.Iteratorjavax.xml.stream.events.XMLEvent peek() throws XMLStreamException
null if there are no more events to read.XMLStreamExceptionjava.lang.String getElementText() throws XMLStreamException
XMLStreamExceptionjavax.xml.stream.events.XMLEvent nextTag() throws XMLStreamException
XMLStreamException - if an event that was not an insignificant
space event was encounteredjava.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the property is not supportedvoid close() throws XMLStreamException
XMLStreamException