Package javanet.staxutils
Class BaseXMLStreamReader
java.lang.Object
javanet.staxutils.BaseXMLStreamReader
- All Implemented Interfaces:
XMLStreamConstants,XMLStreamReader
Abstract base class for
XMLStreamReader implementations.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe stream encoding.protected StringThe stream system ID.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeLocalName(int index) getAttributeNamespace(int index) getAttributePrefix(int index) Returns the name of the current event type.getNamespaceURI(String prefix) Constructs a new, stableLocationfrom the current stream location.booleanhasName()booleanhasText()booleanbooleanbooleanbooleanintnextTag()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.xml.stream.XMLStreamReader
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
-
Field Details
-
systemId
The stream system ID. -
encoding
The stream encoding.
-
-
Constructor Details
-
BaseXMLStreamReader
public BaseXMLStreamReader() -
BaseXMLStreamReader
-
-
Method Details
-
getSystemId
-
getEncoding
- Specified by:
getEncodingin interfaceXMLStreamReader
-
getEventTypeName
Returns the name of the current event type.- Returns:
- The name of the current event type.
-
nextTag
- Specified by:
nextTagin interfaceXMLStreamReader- Throws:
XMLStreamException
-
isCharacters
public boolean isCharacters()- Specified by:
isCharactersin interfaceXMLStreamReader
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElementin interfaceXMLStreamReader
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElementin interfaceXMLStreamReader
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpacein interfaceXMLStreamReader
-
hasName
public boolean hasName()- Specified by:
hasNamein interfaceXMLStreamReader
-
getPrefix
- Specified by:
getPrefixin interfaceXMLStreamReader
-
hasText
public boolean hasText()- Specified by:
hasTextin interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXMLStreamReader
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceXMLStreamReader
-
getAttributeLocalName
- Specified by:
getAttributeLocalNamein interfaceXMLStreamReader
-
getAttributeNamespace
- Specified by:
getAttributeNamespacein interfaceXMLStreamReader
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceXMLStreamReader
-
require
- Specified by:
requirein interfaceXMLStreamReader- Throws:
XMLStreamException
-
getElementText
- Specified by:
getElementTextin interfaceXMLStreamReader- Throws:
XMLStreamException
-
getStableLocation
Constructs a new, stableLocationfrom the current stream location. If the stream location implementsStaticLocation, then the stream location will be returned directly.
-