类 AbstractStaxXMLReader
java.lang.Object
cn.taketoday.util.xml.AbstractXMLReader
cn.taketoday.util.xml.AbstractStaxXMLReader
- 所有已实现的接口:
XMLReader
- 直接已知子类:
StaxEventXMLReader,StaxStreamXMLReader
Abstract base class for SAX
XMLReader implementations that use StAX as a basis.-
嵌套类概要
嵌套类修饰符和类型类说明private static classImplementation of theLocatorinterface based on a given StAXLocation. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidendPrefixMapping(String prefix) End the prefix mapping for the given prefix.booleangetFeature(String name) This implementation throws aSAXNotRecognizedExceptionexception for any feature outside of the "http://xml.org/sax/features/" namespace and returnsfalsefor any feature within.protected booleanIndicates whether the SAX featurehttp://xml.org/sax/features/namespaces-prefixesis turned on.protected booleanIndicates whether the SAX featurehttp://xml.org/sax/features/namespacesis turned on.private voidparse()final voidParse the StAX XML reader passed at construction-time.final voidparse(InputSource ignored) Parse the StAX XML reader passed at construction-time.protected abstract voidTemplate method that parses the StAX reader passed at construction-time.voidsetFeature(String name, boolean value) This implementation throws aSAXNotRecognizedExceptionexception for any feature outside of the "http://xml.org/sax/features/" namespace and accepts afalsevalue for any feature within.protected voidsetStandalone(boolean standalone) protected voidstartPrefixMapping(String prefix, String namespace) Start the prefix mapping for the given prefix.protected StringtoQualifiedName(QName qName) Convert aQNameto a qualified name, as used by DOM and SAX.从类继承的方法 cn.taketoday.util.xml.AbstractXMLReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
-
字段详细资料
-
构造器详细资料
-
AbstractStaxXMLReader
AbstractStaxXMLReader()
-
-
方法详细资料
-
getFeature
从类复制的说明:AbstractXMLReaderThis implementation throws aSAXNotRecognizedExceptionexception for any feature outside of the "http://xml.org/sax/features/" namespace and returnsfalsefor any feature within.- 指定者:
getFeature在接口中XMLReader- 覆盖:
getFeature在类中AbstractXMLReader- 抛出:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException 从类复制的说明:AbstractXMLReaderThis implementation throws aSAXNotRecognizedExceptionexception for any feature outside of the "http://xml.org/sax/features/" namespace and accepts afalsevalue for any feature within.- 指定者:
setFeature在接口中XMLReader- 覆盖:
setFeature在类中AbstractXMLReader- 抛出:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setStandalone
protected void setStandalone(boolean standalone) -
hasNamespacesFeature
protected boolean hasNamespacesFeature()Indicates whether the SAX featurehttp://xml.org/sax/features/namespacesis turned on. -
hasNamespacePrefixesFeature
protected boolean hasNamespacePrefixesFeature()Indicates whether the SAX featurehttp://xml.org/sax/features/namespaces-prefixesis turned on. -
toQualifiedName
Convert aQNameto a qualified name, as used by DOM and SAX. The returned string has a format ofprefix:localNameif the prefix is set, or justlocalNameif not.- 参数:
qName- theQName- 返回:
- the qualified name
-
parse
Parse the StAX XML reader passed at construction-time.NOTE:: The given
InputSourceis not read, but ignored.- 参数:
ignored- is ignored- 抛出:
SAXException- a SAX exception, possibly wrapping aXMLStreamException
-
parse
Parse the StAX XML reader passed at construction-time.NOTE:: The given system identifier is not read, but ignored.
- 参数:
ignored- is ignored- 抛出:
SAXException- a SAX exception, possibly wrapping aXMLStreamException
-
parse
- 抛出:
SAXException
-
parseInternal
Template method that parses the StAX reader passed at construction-time. -
startPrefixMapping
Start the prefix mapping for the given prefix. -
endPrefixMapping
End the prefix mapping for the given prefix.
-