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, 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 String systemId
protected String encoding
public String getSystemId()
public String getEncoding()
getEncoding in interface XMLStreamReaderpublic 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 String getPrefix()
getPrefix in interface XMLStreamReaderpublic boolean hasText()
hasText in interface XMLStreamReaderpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface XMLStreamReaderpublic String getNamespaceURI()
getNamespaceURI in interface XMLStreamReaderpublic String getAttributeLocalName(int index)
getAttributeLocalName in interface XMLStreamReaderpublic String getAttributeNamespace(int index)
getAttributeNamespace in interface XMLStreamReaderpublic String getAttributePrefix(int index)
getAttributePrefix in interface XMLStreamReaderpublic void require(int type,
String namespaceURI,
String localName)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamExceptionpublic 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.Copyright © 2024. All rights reserved.