public abstract class BaseXMLStreamReader extends java.lang.Object implements XMLStreamReader
XMLStreamReader
implementations.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding
The stream encoding.
|
protected java.lang.String |
systemId
The stream system ID.
|
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 |
---|
BaseXMLStreamReader() |
BaseXMLStreamReader(java.lang.String systemId,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeLocalName(int index) |
java.lang.String |
getAttributeNamespace(int index) |
java.lang.String |
getAttributePrefix(int index) |
java.lang.String |
getElementText() |
java.lang.String |
getEncoding() |
java.lang.String |
getEventTypeName()
Returns the name of the current event type.
|
java.lang.String |
getNamespaceURI() |
java.lang.String |
getNamespaceURI(java.lang.String prefix) |
java.lang.String |
getPrefix() |
Location |
getStableLocation()
Constructs a new, stable
Location from the current stream location. |
java.lang.String |
getSystemId() |
boolean |
hasName() |
boolean |
hasText() |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
nextTag() |
void |
require(int type,
java.lang.String namespaceURI,
java.lang.String localName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAttributeCount, getAttributeName, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getPIData, getPITarget, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasNext, isAttributeSpecified, isStandalone, next, standaloneSet
protected java.lang.String systemId
protected java.lang.String encoding
public BaseXMLStreamReader()
public BaseXMLStreamReader(java.lang.String systemId, java.lang.String encoding)
public java.lang.String getSystemId()
public java.lang.String getEncoding()
getEncoding
in interface XMLStreamReader
public java.lang.String getEventTypeName()
public int nextTag() throws XMLStreamException
nextTag
in interface XMLStreamReader
XMLStreamException
public boolean isCharacters()
isCharacters
in interface XMLStreamReader
public boolean isEndElement()
isEndElement
in interface XMLStreamReader
public boolean isStartElement()
isStartElement
in interface XMLStreamReader
public boolean isWhiteSpace()
isWhiteSpace
in interface XMLStreamReader
public boolean hasName()
hasName
in interface XMLStreamReader
public java.lang.String getPrefix()
getPrefix
in interface XMLStreamReader
public boolean hasText()
hasText
in interface XMLStreamReader
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface XMLStreamReader
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface XMLStreamReader
public java.lang.String getAttributeLocalName(int index)
getAttributeLocalName
in interface XMLStreamReader
public java.lang.String getAttributeNamespace(int index)
getAttributeNamespace
in interface XMLStreamReader
public java.lang.String getAttributePrefix(int index)
getAttributePrefix
in interface XMLStreamReader
public void require(int type, java.lang.String namespaceURI, java.lang.String localName) throws XMLStreamException
require
in interface XMLStreamReader
XMLStreamException
public java.lang.String getElementText() throws XMLStreamException
getElementText
in interface XMLStreamReader
XMLStreamException
public Location getStableLocation()
Location
from the current stream location.
If the stream location implements StaticLocation
, then the stream
location will be returned directly.