类 StaxEventXMLReader
java.lang.Object
cn.taketoday.util.xml.AbstractXMLReader
cn.taketoday.util.xml.AbstractStaxXMLReader
cn.taketoday.util.xml.StaxEventXMLReader
- 所有已实现的接口:
XMLReader
SAX
XMLReader that reads from a StAX XMLEventReader. Consumes XMLEvents from
an XMLEventReader, and calls the corresponding methods on the SAX callback interfaces.-
字段概要
字段 -
构造器概要
构造器构造器说明StaxEventXMLReader(XMLEventReader reader) Constructs a new instance of theStaxEventXmlReaderthat reads from the givenXMLEventReader. -
方法概要
修饰符和类型方法说明private AttributesgetAttributes(StartElement event) private voidhandleCharacters(Characters characters) private voidhandleComment(Comment comment) private voidprivate voidprivate voidhandleEndElement(EndElement endElement) private voidhandleEntityDeclaration(EntityDeclaration entityDeclaration) private voidhandleEntityReference(EntityReference reference) private voidhandleNotationDeclaration(NotationDeclaration declaration) private voidprivate voidhandleStartDocument(XMLEvent event) private voidhandleStartElement(StartElement startElement) protected voidTemplate method that parses the StAX reader passed at construction-time.从类继承的方法 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
-
-
构造器详细资料
-
StaxEventXMLReader
StaxEventXMLReader(XMLEventReader reader) Constructs a new instance of theStaxEventXmlReaderthat reads from the givenXMLEventReader. The supplied event 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
-
handleStartElement
- 抛出:
SAXException
-
handleCharacters
- 抛出:
SAXException
-
handleEndElement
- 抛出:
SAXException
-
handleEndDocument
- 抛出:
SAXException
-
handleNotationDeclaration
- 抛出:
SAXException
-
handleEntityDeclaration
- 抛出:
SAXException
-
handleProcessingInstruction
- 抛出:
SAXException
-
handleComment
- 抛出:
SAXException
-
handleDtd
- 抛出:
SAXException
-
handleEntityReference
- 抛出:
SAXException
-
getAttributes
-