Iterator<Object>, XMLEventReader
public class EventReaderDelegate extends Object implements XMLEventReader
| Constructor | Description | 
|---|---|
| EventReaderDelegate() | Construct an empty filter with no parent. | 
| EventReaderDelegate | Construct an filter with the specified parent. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | close() | Frees any resources associated with this Reader. | 
| String | getElementText() | Reads the content of a text-only element. | 
| XMLEventReader | getParent() | Get the parent of this instance. | 
| Object | getProperty | Get the value of a feature/property from the underlying implementation | 
| boolean | hasNext() | Check if there are more events. | 
| Object | next() | Returns the next element in the iteration. | 
| XMLEvent | nextEvent() | Gets the next XMLEvent. | 
| XMLEvent | nextTag() | Skips any insignificant space events until a START_ELEMENT or END_ELEMENT is reached. | 
| XMLEvent | peek() | Check the next XMLEvent without reading it from the stream. | 
| void | setParent | Set the parent of this instance. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public EventReaderDelegate()
public EventReaderDelegate(XMLEventReader reader)
reader - the parentpublic void setParent(XMLEventReader reader)
reader - the new parentpublic XMLEventReader getParent()
public XMLEvent nextEvent() throws XMLStreamException
XMLEventReaderStartDocument.nextEvent in interface XMLEventReader
XMLStreamException - if there is an error with the underlying XML.public Object next()
Iteratorpublic boolean hasNext()
XMLEventReaderhasNext in interface Iterator<Object>
hasNext in interface XMLEventReader
public XMLEvent peek() throws XMLStreamException
XMLEventReaderpeek in interface XMLEventReader
XMLStreamException - if an error occurspublic void close() throws XMLStreamException
XMLEventReaderclose in interface XMLEventReader
XMLStreamException - if there are errors freeing associated resourcespublic String getElementText() throws XMLStreamException
XMLEventReadergetElementText in interface XMLEventReader
XMLStreamException - if the current event is not a START_ELEMENT or if a non text element is encounteredpublic XMLEvent nextTag() throws XMLStreamException
XMLEventReadernextTag in interface XMLEventReader
XMLStreamException - if anything other than space characters are encounteredpublic Object getProperty(String name) throws IllegalArgumentException
XMLEventReadergetProperty in interface XMLEventReader
name - The name of the propertyIllegalArgumentException - if the property is not supported
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.xml/javax/xml/stream/util/EventReaderDelegate.html