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, waitclose, 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, standaloneSetprotected 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 XMLStreamReaderpublic java.lang.String getEventTypeName()
public int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReaderXMLStreamExceptionpublic boolean isCharacters()
isCharacters in interface XMLStreamReaderpublic boolean isEndElement()
isEndElement in interface XMLStreamReaderpublic boolean isStartElement()
isStartElement in interface XMLStreamReaderpublic boolean isWhiteSpace()
isWhiteSpace in interface XMLStreamReaderpublic boolean hasName()
hasName in interface XMLStreamReaderpublic java.lang.String getPrefix()
getPrefix in interface XMLStreamReaderpublic boolean hasText()
hasText in interface XMLStreamReaderpublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface XMLStreamReaderpublic java.lang.String getNamespaceURI()
getNamespaceURI in interface XMLStreamReaderpublic java.lang.String getAttributeLocalName(int index)
getAttributeLocalName in interface XMLStreamReaderpublic java.lang.String getAttributeNamespace(int index)
getAttributeNamespace in interface XMLStreamReaderpublic java.lang.String getAttributePrefix(int index)
getAttributePrefix in interface XMLStreamReaderpublic void require(int type,
java.lang.String namespaceURI,
java.lang.String localName)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamExceptionpublic java.lang.String getElementText()
throws XMLStreamException
getElementText in interface XMLStreamReaderXMLStreamExceptionpublic Location getStableLocation()
Location from the current stream location.
If the stream location implements StaticLocation, then the stream
location will be returned directly.