org.apache.axiom.util.stax
Class AbstractXMLStreamReader
java.lang.Object
org.apache.axiom.util.stax.AbstractXMLStreamReader
- All Implemented Interfaces:
- XMLStreamConstants, XMLStreamReader
public abstract class AbstractXMLStreamReader
- extends Object
- implements XMLStreamReader
Partial implementation of the 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.
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.stream.XMLStreamReader |
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 |
AbstractXMLStreamReader
public AbstractXMLStreamReader()
getLocation
public Location getLocation()
- Specified by:
getLocation in interface XMLStreamReader
hasText
public boolean hasText()
- Specified by:
hasText in interface XMLStreamReader
- Returns:
- Returns boolean.
- See Also:
XMLStreamReader.hasText()
nextTag
public int nextTag()
throws XMLStreamException
- Returns the next tag.
- Specified by:
nextTag in interface XMLStreamReader
- Returns:
- Returns int.
- Throws:
OMStreamingException
XMLStreamException
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement in interface XMLStreamReader
isEndElement
public boolean isEndElement()
- Specified by:
isEndElement in interface XMLStreamReader
isCharacters
public boolean isCharacters()
- Specified by:
isCharacters in interface XMLStreamReader
isWhiteSpace
public boolean isWhiteSpace()
- Specified by:
isWhiteSpace in interface XMLStreamReader
hasName
public boolean hasName()
- Specified by:
hasName in interface XMLStreamReader
require
public void require(int type,
String uri,
String localName)
throws XMLStreamException
- Specified by:
require in interface XMLStreamReader
- Throws:
XMLStreamException
getElementText
public String getElementText()
throws XMLStreamException
- Specified by:
getElementText in interface XMLStreamReader
- Throws:
XMLStreamException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.