javax.xml.stream
public interface XMLEventReader extends Iterator
| Method Summary | |
|---|---|
| void | close()
Free any resources associated with this parser.
|
| String | getElementText()
Reads the text context of an element.
|
| Object | getProperty(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. |
| XMLEvent | nextEvent()
Returns the next XML event. |
| XMLEvent | nextTag()
Returns the next element event.
|
| XMLEvent | peek()
Looks at the next XML event without advancing the cursor in the stream.
|
Throws: IllegalArgumentException if the property is not supported
Throws: XMLStreamException if an event that was not an insignificant space event was encountered
null if there are no more events to read.