public abstract class AbstractXMLReader extends java.lang.Object implements XMLReader
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_NAMESPACE |
protected static QNameFactory |
qnameFactory |
CHARACTER_DATA, END_DOCUMENT, END_ELEMENT, START_ELEMENT
Constructor and Description |
---|
AbstractXMLReader() |
Modifier and Type | Method and Description |
---|---|
protected javax.xml.namespace.QName |
getQName(java.lang.String value) |
javax.xml.namespace.QName |
getQNameAttribute(java.lang.String namespaceURI,
java.lang.String localPart)
Returns the value of the attribute with the given name as a QName.
|
javax.xml.namespace.QName |
getQNameText()
returns the text from the current event as a QName.
|
abstract java.lang.String |
getText()
returns the text from the current event as a String.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAttribute, getEventType, getLocalName, getNamespaceMap, getNamespaceURI, getNamespaceURI, hasName, isCharacters, isEndElement, isStartElement, next, require
protected static final QNameFactory qnameFactory
private static final java.lang.String DEFAULT_NAMESPACE
public javax.xml.namespace.QName getQNameAttribute(java.lang.String namespaceURI, java.lang.String localPart) throws java.lang.IllegalStateException
XMLReader
getQNameAttribute
in interface XMLReader
java.lang.IllegalStateException
- if the current event has no attributes.protected javax.xml.namespace.QName getQName(java.lang.String value)
public abstract java.lang.String getText() throws java.lang.IllegalStateException
XMLReader
public javax.xml.namespace.QName getQNameText() throws java.lang.IllegalStateException
XMLReader
getQNameText
in interface XMLReader
java.lang.IllegalStateException
- if the current event has no text.