public class StreamingContentHandler extends 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, warning
public 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
UnsupportedEncodingException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.