public abstract class BaseXMLStreamReader extends Object implements XMLStreamReader
XMLStreamReader
implementations.Modifier and Type | Field and Description |
---|---|
protected String |
encoding
The stream encoding.
|
protected 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(String systemId,
String encoding) |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeLocalName(int index) |
String |
getAttributeNamespace(int index) |
String |
getAttributePrefix(int index) |
String |
getElementText() |
String |
getEncoding() |
String |
getEventTypeName()
Returns the name of the current event type.
|
String |
getNamespaceURI() |
String |
getNamespaceURI(String prefix) |
String |
getPrefix() |
Location |
getStableLocation()
Constructs a new, stable
Location from the current stream location. |
String |
getSystemId() |
boolean |
hasName() |
boolean |
hasText() |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
nextTag() |
void |
require(int type,
String namespaceURI,
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 String systemId
protected String encoding
public String getSystemId()
public String getEncoding()
getEncoding
in interface XMLStreamReader
public 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 String getPrefix()
getPrefix
in interface XMLStreamReader
public boolean hasText()
hasText
in interface XMLStreamReader
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface XMLStreamReader
public String getNamespaceURI()
getNamespaceURI
in interface XMLStreamReader
public String getAttributeLocalName(int index)
getAttributeLocalName
in interface XMLStreamReader
public String getAttributeNamespace(int index)
getAttributeNamespace
in interface XMLStreamReader
public String getAttributePrefix(int index)
getAttributePrefix
in interface XMLStreamReader
public void require(int type, String namespaceURI, String localName) throws XMLStreamException
require
in interface XMLStreamReader
XMLStreamException
public 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.