public class StAXStreamContentHandler extends StAXContentHandler
XMLStreamWriter.CDATABuffer, docLocator, isCDATA, namespaces, reporter| Constructor and Description |
|---|
StAXStreamContentHandler() |
StAXStreamContentHandler(XMLStreamWriter writer)
Constructs an instance that writes SAX events to the specified StAX stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
XMLStreamWriter |
getStreamWriter()
Returns a reference to the
XMLStreamWriterto which SAX events are
written. |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
void |
setStreamWriter(XMLStreamWriter writer)
Sets the
XMLStreamWriterto which SAX events will be written. |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDTD, endEntity, endPrefixMapping, error, fatalError, getCurrentLocation, parseQName, reportException, setDocumentLocator, setXMLReporter, startCDATA, startDTD, startEntity, startPrefixMapping, warningnotationDecl, resolveEntity, skippedEntity, unparsedEntityDeclpublic StAXStreamContentHandler()
public StAXStreamContentHandler(XMLStreamWriter writer)
writer - The StAX stream to which events will be written.public XMLStreamWriter getStreamWriter()
XMLStreamWriterto which SAX events are
written.XMLStreamWriterto which SAX events are written.public void setStreamWriter(XMLStreamWriter writer)
XMLStreamWriterto which SAX events will be written.writer - The XMLStreamWriterto which SAX events will be written.public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class StAXContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class StAXContentHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class StAXContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class StAXContentHandlerSAXExceptionpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class StAXContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class StAXContentHandlerSAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerendCDATA in class StAXContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlerSAXExceptionCopyright © 2019. All rights reserved.