public class XMLResult
extends javax.xml.transform.sax.SAXResult
XMLResult
implements a JAXP SAXResult
for an output
stream with support for pretty printing and control over how the XML is
formatted.
Constructor and Description |
---|
XMLResult() |
XMLResult(java.io.OutputStream out) |
XMLResult(java.io.OutputStream out,
OutputFormat format) |
XMLResult(java.io.Writer writer) |
XMLResult(java.io.Writer writer,
OutputFormat format) |
XMLResult(XMLWriter xmlWriter) |
Modifier and Type | Method and Description |
---|---|
org.xml.sax.ContentHandler |
getHandler() |
org.xml.sax.ext.LexicalHandler |
getLexicalHandler() |
XMLWriter |
getXMLWriter() |
void |
setXMLWriter(XMLWriter writer) |
public XMLResult()
public XMLResult(java.io.Writer writer)
public XMLResult(java.io.Writer writer, OutputFormat format)
public XMLResult(java.io.OutputStream out) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public XMLResult(java.io.OutputStream out, OutputFormat format) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public XMLResult(XMLWriter xmlWriter)
public XMLWriter getXMLWriter()
public void setXMLWriter(XMLWriter writer)
public org.xml.sax.ContentHandler getHandler()
getHandler
in class javax.xml.transform.sax.SAXResult
public org.xml.sax.ext.LexicalHandler getLexicalHandler()
getLexicalHandler
in class javax.xml.transform.sax.SAXResult