public class StreamReaderProxy extends StreamReaderDelegate
XMLStreamReader interface that adapts an XMLStreamReader. It therefore
extends StreamReaderDelegate but adds the default implementation to nextTag() to allow overriding
StreamReaderDelegate.next() properly.ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier | Constructor and Description |
|---|---|
protected |
StreamReaderProxy()
The constructor.
|
|
StreamReaderProxy(XMLStreamReader reader)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
nextTag()
We override this method to get sure that it delegates to our
StreamReaderDelegate.next() instead of the StreamReaderDelegate.next() of the
delegate. |
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, require, setParent, standaloneSetprotected StreamReaderProxy()
public StreamReaderProxy(XMLStreamReader reader)
reader - is the delegate to adapt.public int nextTag()
throws XMLStreamException
StreamReaderDelegate.next() instead of the StreamReaderDelegate.next() of the
delegate.nextTag in interface XMLStreamReadernextTag in class StreamReaderDelegateXMLStreamExceptionCopyright © 2001–2016 mmm-Team. All rights reserved.