public class StreamingContentHandler extends org.xml.sax.helpers.DefaultHandler
OutputStream to the ContentHandler interface. SAX events invoked on this
object will be translated into their corresponding XML text and written to the output stream.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING |
| Constructor and Description |
|---|
StreamingContentHandler(OutputStream os) |
StreamingContentHandler(OutputStream os,
Collection<String> unexportableNamespaces) |
StreamingContentHandler(OutputStream os,
Collection<String> unexportableNamespaces,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warningpublic static final String DEFAULT_ENCODING
public StreamingContentHandler(OutputStream os)
public StreamingContentHandler(OutputStream os, Collection<String> unexportableNamespaces)
public StreamingContentHandler(OutputStream os, Collection<String> unexportableNamespaces, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void characters(char[] ch, int start, int length) throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startDocument() throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument() throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerCopyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.