XMLReader that reads from a StAX XMLEventReader. Consumes XMLEvents from
an XMLEventReader, and calls the corresponding methods on the SAX callback interfaces.
XMLEventReader, setContentHandler(org.xml.sax.ContentHandler) , setDTDHandler(org.xml.sax.DTDHandler) , setEntityResolver(org.xml.sax.EntityResolver) , setErrorHandler(org.xml.sax.ErrorHandler)
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private String | |
| private final XMLEventReader | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | StaxEventXMLReader(XMLEventReader
the reader)XMLEventReader to read fromConstructs a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| private Attributes | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | parseInternal()
Implements abstract org. Template method that parses the StAX reader passed at construction-time. |
| DEFAULT_XML_VERSION | back to summary |
|---|---|
| private static final String DEFAULT_XML_VERSION | |
| encoding | back to summary |
|---|---|
| private String encoding
| |
| reader | back to summary |
|---|---|
| private final XMLEventReader reader | |
| xmlVersion | back to summary |
|---|---|
| private String xmlVersion | |
| StaxEventXMLReader | back to summary |
|---|---|
| pack-priv StaxEventXMLReader(XMLEventReader reader) Constructs a new instance of the
| |
| getAttributes | back to summary |
|---|---|
| private Attributes getAttributes(StartElement event) | |
| handleCharacters | back to summary |
|---|---|
| private void handleCharacters(Characters characters) throws SAXException | |
| handleComment | back to summary |
|---|---|
| private void handleComment(Comment comment) throws SAXException | |
| handleDtd | back to summary |
|---|---|
| private void handleDtd(DTD dtd) throws SAXException | |
| handleEndDocument | back to summary |
|---|---|
| private void handleEndDocument() throws SAXException | |
| handleEndElement | back to summary |
|---|---|
| private void handleEndElement(EndElement endElement) throws SAXException | |
| handleEntityDeclaration | back to summary |
|---|---|
| private void handleEntityDeclaration(EntityDeclaration entityDeclaration) throws SAXException | |
| handleEntityReference | back to summary |
|---|---|
| private void handleEntityReference(EntityReference reference) throws SAXException | |
| handleNotationDeclaration | back to summary |
|---|---|
| private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException | |
| handleProcessingInstruction | back to summary |
|---|---|
| private void handleProcessingInstruction(ProcessingInstruction pi) throws SAXException | |
| handleStartDocument | back to summary |
|---|---|
| private void handleStartDocument(final XMLEvent event) throws SAXException | |
| handleStartElement | back to summary |
|---|---|
| private void handleStartElement(StartElement startElement) throws SAXException | |
| parseInternal | back to summary |
|---|---|
| protected void parseInternal() throws SAXException, XMLStreamException Implements abstract org. Doc from org. Template method that parses the StAX reader passed at construction-time.
| |