public interface DelegatingXMLStreamReader extends javax.xml.stream.XMLStreamReader
XMLStreamReader
classes that delegate to another stream reader
and that can be safely unwrapped.
This interface gives access to the parent reader, i.e. it allows to unwrap a stream reader
wrapper. It should be noted that in general, unwrapping a wrapper and accessing the parent object
is not a safe operation because it may invalidate the state of the wrapper (which may still be
used later). Therefore this interface must only be implemented by XMLStreamReader
classes
for which unwrapping is a safe operation. In particular, this interface should not be implemented
by wrappers that alter the sequence of events produced by the stream reader.
This interface is used by
XMLStreamReaderUtils.getOriginalXMLStreamReader(XMLStreamReader)
to get access to the original parser.
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Modifier and Type | Method and Description |
---|---|
javax.xml.stream.XMLStreamReader |
getParent() |
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
javax.xml.stream.XMLStreamReader getParent()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.