Class EventReaderDelegate
- java.lang.Object
-
- javax.xml.stream.util.EventReaderDelegate
- All Implemented Interfaces:
-
Iterator<Object>
,XMLEventReader
public class EventReaderDelegate extends Object implements XMLEventReader
This is the base class for deriving an XMLEventReader filter. This class is designed to sit between an XMLEventReader and an application's XMLEventReader. By default each method does nothing but call the corresponding method on the parent interface.
- Since:
- 1.6
- See Also:
-
XMLEventReader
,StreamReaderDelegate
Constructors
Constructor | Description |
---|---|
EventReaderDelegate() | Construct an empty filter with no parent. |
EventReaderDelegate(XMLEventReader reader) | Construct an filter with the specified parent. |
Methods
Modifier and Type | Method | Description |
---|---|---|
XMLEventReader | getParent() | Get the parent of this instance. |
void | setParent(XMLEventReader reader) | Set the parent of this instance. |
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, next, remove
Methods declared in interface javax.xml.stream.XMLEventReader
close, getElementText, getProperty, hasNext, nextEvent, nextTag, peek
Constructors
EventReaderDelegate
public EventReaderDelegate()
Construct an empty filter with no parent.
EventReaderDelegate
public EventReaderDelegate(XMLEventReader reader)
Construct an filter with the specified parent.
- Parameters:
-
reader
- the parent
Methods
setParent
public void setParent(XMLEventReader reader)
Set the parent of this instance.
- Parameters:
-
reader
- the new parent
getParent
public XMLEventReader getParent()
Get the parent of this instance.
- Returns:
- the parent or null if none is set
© 1993, 2020, 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/11/docs/api/java.xml/javax/xml/stream/util/EventReaderDelegate.html