class StaxStreamContentHandler extends AbstractStaxContentHandler
ContentHandler
that writes to a XMLStreamWriter
.XMLStreamWriter
Modifier and Type | Field and Description |
---|---|
private javax.xml.stream.XMLStreamWriter |
streamWriter |
Constructor and Description |
---|
StaxStreamContentHandler(javax.xml.stream.XMLStreamWriter streamWriter)
Constructs a new instance of the
StaxStreamContentHandler that writes to the given
XMLStreamWriter . |
Modifier and Type | Method and Description |
---|---|
protected void |
charactersInternal(char[] ch,
int start,
int length) |
protected void |
endDocumentInternal() |
protected void |
endElementInternal(javax.xml.namespace.QName name,
SimpleNamespaceContext namespaceContext) |
protected void |
ignorableWhitespaceInternal(char[] ch,
int start,
int length) |
protected void |
processingInstructionInternal(java.lang.String target,
java.lang.String data) |
void |
setDocumentLocator(org.xml.sax.Locator locator) |
protected void |
skippedEntityInternal(java.lang.String name) |
protected void |
startDocumentInternal() |
protected void |
startElementInternal(javax.xml.namespace.QName name,
org.xml.sax.Attributes attributes,
SimpleNamespaceContext namespaceContext) |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping, toQName
StaxStreamContentHandler(javax.xml.stream.XMLStreamWriter streamWriter)
StaxStreamContentHandler
that writes to the given
XMLStreamWriter
.streamWriter
- the stream writer to write topublic void setDocumentLocator(org.xml.sax.Locator locator)
protected void charactersInternal(char[] ch, int start, int length) throws javax.xml.stream.XMLStreamException
charactersInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void endDocumentInternal() throws javax.xml.stream.XMLStreamException
endDocumentInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void endElementInternal(javax.xml.namespace.QName name, SimpleNamespaceContext namespaceContext) throws javax.xml.stream.XMLStreamException
endElementInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void ignorableWhitespaceInternal(char[] ch, int start, int length) throws javax.xml.stream.XMLStreamException
ignorableWhitespaceInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void processingInstructionInternal(java.lang.String target, java.lang.String data) throws javax.xml.stream.XMLStreamException
processingInstructionInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void skippedEntityInternal(java.lang.String name)
skippedEntityInternal
in class AbstractStaxContentHandler
protected void startDocumentInternal() throws javax.xml.stream.XMLStreamException
startDocumentInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException
protected void startElementInternal(javax.xml.namespace.QName name, org.xml.sax.Attributes attributes, SimpleNamespaceContext namespaceContext) throws javax.xml.stream.XMLStreamException
startElementInternal
in class AbstractStaxContentHandler
javax.xml.stream.XMLStreamException