public class StreamReaderDelegate extends java.lang.Object implements XMLStreamReader
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
StreamReaderDelegate() |
StreamReaderDelegate(XMLStreamReader reader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getAttributeCount() |
java.lang.String |
getAttributeLocalName(int index) |
QName |
getAttributeName(int index) |
java.lang.String |
getAttributeNamespace(int index) |
java.lang.String |
getAttributePrefix(int index) |
java.lang.String |
getAttributeType(int index) |
java.lang.String |
getAttributeValue(int index) |
java.lang.String |
getAttributeValue(java.lang.String namespaceURI,
java.lang.String localName) |
java.lang.String |
getCharacterEncodingScheme() |
java.lang.String |
getElementText() |
java.lang.String |
getEncoding() |
int |
getEventType() |
java.lang.String |
getLocalName() |
Location |
getLocation() |
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
java.lang.String |
getNamespacePrefix(int index) |
java.lang.String |
getNamespaceURI() |
java.lang.String |
getNamespaceURI(int index) |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
XMLStreamReader |
getParent() |
java.lang.String |
getPIData() |
java.lang.String |
getPITarget() |
java.lang.String |
getPrefix() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getText() |
char[] |
getTextCharacters() |
int |
getTextCharacters(int sourceStart,
char[] target,
int targetStart,
int length) |
int |
getTextLength() |
int |
getTextStart() |
java.lang.String |
getVersion() |
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int index) |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next() |
int |
nextTag() |
void |
require(int type,
java.lang.String namespaceURI,
java.lang.String localName) |
void |
setParent(XMLStreamReader reader) |
boolean |
standaloneSet() |
public StreamReaderDelegate()
public StreamReaderDelegate(XMLStreamReader reader)
public void setParent(XMLStreamReader reader)
public XMLStreamReader getParent()
public int next() throws XMLStreamException
next
in interface XMLStreamReader
XMLStreamException
public int nextTag() throws XMLStreamException
nextTag
in interface XMLStreamReader
XMLStreamException
public java.lang.String getElementText() throws XMLStreamException
getElementText
in interface XMLStreamReader
XMLStreamException
public void require(int type, java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
require
in interface XMLStreamReader
XMLStreamException
public boolean hasNext() throws XMLStreamException
hasNext
in interface XMLStreamReader
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLStreamReader
XMLStreamException
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface XMLStreamReader
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XMLStreamReader
public boolean isStartElement()
isStartElement
in interface XMLStreamReader
public boolean isEndElement()
isEndElement
in interface XMLStreamReader
public boolean isCharacters()
isCharacters
in interface XMLStreamReader
public boolean isWhiteSpace()
isWhiteSpace
in interface XMLStreamReader
public java.lang.String getAttributeValue(java.lang.String namespaceURI, java.lang.String localName)
getAttributeValue
in interface XMLStreamReader
public int getAttributeCount()
getAttributeCount
in interface XMLStreamReader
public QName getAttributeName(int index)
getAttributeName
in interface XMLStreamReader
public java.lang.String getAttributePrefix(int index)
getAttributePrefix
in interface XMLStreamReader
public java.lang.String getAttributeNamespace(int index)
getAttributeNamespace
in interface XMLStreamReader
public java.lang.String getAttributeLocalName(int index)
getAttributeLocalName
in interface XMLStreamReader
public java.lang.String getAttributeType(int index)
getAttributeType
in interface XMLStreamReader
public java.lang.String getAttributeValue(int index)
getAttributeValue
in interface XMLStreamReader
public boolean isAttributeSpecified(int index)
isAttributeSpecified
in interface XMLStreamReader
public int getNamespaceCount()
getNamespaceCount
in interface XMLStreamReader
public java.lang.String getNamespacePrefix(int index)
getNamespacePrefix
in interface XMLStreamReader
public java.lang.String getNamespaceURI(int index)
getNamespaceURI
in interface XMLStreamReader
public int getEventType()
getEventType
in interface XMLStreamReader
public java.lang.String getText()
getText
in interface XMLStreamReader
public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException
getTextCharacters
in interface XMLStreamReader
XMLStreamException
public char[] getTextCharacters()
getTextCharacters
in interface XMLStreamReader
public int getTextStart()
getTextStart
in interface XMLStreamReader
public int getTextLength()
getTextLength
in interface XMLStreamReader
public java.lang.String getEncoding()
getEncoding
in interface XMLStreamReader
public boolean hasText()
hasText
in interface XMLStreamReader
public Location getLocation()
getLocation
in interface XMLStreamReader
public QName getName()
getName
in interface XMLStreamReader
public java.lang.String getLocalName()
getLocalName
in interface XMLStreamReader
public boolean hasName()
hasName
in interface XMLStreamReader
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface XMLStreamReader
public java.lang.String getPrefix()
getPrefix
in interface XMLStreamReader
public java.lang.String getVersion()
getVersion
in interface XMLStreamReader
public boolean isStandalone()
isStandalone
in interface XMLStreamReader
public boolean standaloneSet()
standaloneSet
in interface XMLStreamReader
public java.lang.String getCharacterEncodingScheme()
getCharacterEncodingScheme
in interface XMLStreamReader
public java.lang.String getPITarget()
getPITarget
in interface XMLStreamReader
public java.lang.String getPIData()
getPIData
in interface XMLStreamReader
public java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
getProperty
in interface XMLStreamReader
java.lang.IllegalArgumentException
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.