Class StreamReaderDelegate

All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader
public class StreamReaderDelegate
extends Object
implements XMLStreamReader

This is the base class for deriving an XMLStreamReader filter This class is designed to sit between an XMLStreamReader and an application's XMLStreamReader. By default each method does nothing but call the corresponding method on the parent interface.

Since:
1.6
See Also:
XMLStreamReader, EventReaderDelegate

Fields

Fields declared in interface javax.xml.stream.XMLStreamConstants

ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT

Constructors

Constructor Description
StreamReaderDelegate()

Construct an empty filter with no parent.

StreamReaderDelegate​(XMLStreamReader reader)

Construct an filter with the specified parent.

Methods

Modifier and Type Method Description
XMLStreamReader getParent()

Get the parent of this instance.

void setParent​(XMLStreamReader 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 javax.xml.stream.XMLStreamReader

close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSet

Constructors

StreamReaderDelegate

public StreamReaderDelegate()

Construct an empty filter with no parent.

StreamReaderDelegate

public StreamReaderDelegate(XMLStreamReader reader)

Construct an filter with the specified parent.

Parameters:
reader - the parent

Methods

setParent

public void setParent(XMLStreamReader reader)

Set the parent of this instance.

Parameters:
reader - the new parent

getParent

public XMLStreamReader 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/StreamReaderDelegate.html