类 StaxStreamXMLReader
java.lang.Object
cn.taketoday.util.xml.AbstractXMLReader
cn.taketoday.util.xml.AbstractStaxXMLReader
cn.taketoday.util.xml.StaxStreamXMLReader
- 所有已实现的接口:
XMLReader
SAX
XMLReader that reads from a StAX XMLStreamReader. Reads from an
XMLStreamReader, and calls the corresponding methods on the SAX callback interfaces.-
字段概要
字段修饰符和类型字段说明private static final Stringprivate Stringprivate final XMLStreamReaderprivate String -
构造器概要
构造器构造器说明StaxStreamXMLReader(XMLStreamReader reader) Construct a new instance of theStaxStreamXmlReaderthat reads from the givenXMLStreamReader. -
方法概要
修饰符和类型方法说明private Attributesprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidprotected voidTemplate method that parses the StAX reader passed at construction-time.(专用程序包) static voidsetDocumentLocator(ContentHandler contentHandler, Location location, String xmlVersion2, String encoding) 从类继承的方法 cn.taketoday.util.xml.AbstractStaxXMLReader
endPrefixMapping, getFeature, hasNamespacePrefixesFeature, hasNamespacesFeature, parse, parse, setFeature, setStandalone, startPrefixMapping, toQualifiedName从类继承的方法 cn.taketoday.util.xml.AbstractXMLReader
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
-
字段详细资料
-
DEFAULT_XML_VERSION
- 另请参阅:
-
reader
-
xmlVersion
-
encoding
-
-
构造器详细资料
-
StaxStreamXMLReader
StaxStreamXMLReader(XMLStreamReader reader) Construct a new instance of theStaxStreamXmlReaderthat reads from the givenXMLStreamReader. The supplied stream reader must be inXMLStreamConstants.START_DOCUMENTorXMLStreamConstants.START_ELEMENTstate.- 参数:
reader- theXMLEventReaderto read from- 抛出:
IllegalStateException- if the reader is not at the start of a document or element
-
-
方法详细资料
-
parseInternal
从类复制的说明:AbstractStaxXMLReaderTemplate method that parses the StAX reader passed at construction-time.- 指定者:
parseInternal在类中AbstractStaxXMLReader- 抛出:
SAXExceptionXMLStreamException
-
handleStartDocument
- 抛出:
SAXException
-
setDocumentLocator
static void setDocumentLocator(ContentHandler contentHandler, @Nullable Location location, String xmlVersion2, @Nullable String encoding) throws SAXException - 抛出:
SAXException
-
handleStartElement
- 抛出:
SAXException
-
handleEndElement
- 抛出:
SAXException
-
handleCharacters
- 抛出:
SAXException
-
handleComment
- 抛出:
SAXException
-
handleDtd
- 抛出:
SAXException
-
handleEntityReference
- 抛出:
SAXException
-
handleEndDocument
- 抛出:
SAXException
-
handleProcessingInstruction
- 抛出:
SAXException
-
getAttributes
-