public abstract class AbstractXMLStreamReader extends Object implements XMLStreamReader
XMLStreamReader
interface.
This class implements methods that can be easily expressed in terms of other
(abstract) methods or for which it makes sense to provide a default
implementation.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 |
---|
AbstractXMLStreamReader() |
Modifier and Type | Method and Description |
---|---|
String |
getElementText() |
Location |
getLocation() |
boolean |
hasName() |
boolean |
hasText() |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
nextTag()
Returns the next tag.
|
void |
require(int type,
String uri,
String localName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasNext, isAttributeSpecified, isStandalone, next, standaloneSet
public Location getLocation()
getLocation
in interface XMLStreamReader
public boolean hasText()
hasText
in interface XMLStreamReader
XMLStreamReader.hasText()
public int nextTag() throws XMLStreamException
nextTag
in interface XMLStreamReader
OMStreamingException
XMLStreamException
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 boolean hasName()
hasName
in interface XMLStreamReader
public void require(int type, String uri, String localName) throws XMLStreamException
require
in interface XMLStreamReader
XMLStreamException
public String getElementText() throws XMLStreamException
getElementText
in interface XMLStreamReader
XMLStreamException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.