public class XMLResult extends SAXResult
XMLResult
implements a JAXP Result
for an output stream with support for pretty printing
and control over how the XML is formatted.
Modifier and Type | Field and Description |
---|---|
private XMLWriter |
xmlWriter |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
XMLResult() |
XMLResult(OutputStream out) |
XMLResult(OutputStream out,
OutputFormat format) |
XMLResult(Writer writer) |
XMLResult(Writer writer,
OutputFormat format) |
XMLResult(XMLWriter xmlWriter) |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getHandler() |
LexicalHandler |
getLexicalHandler() |
XMLWriter |
getXMLWriter() |
void |
setXMLWriter(XMLWriter xmlWriter) |
getSystemId, setHandler, setLexicalHandler, setSystemId
public XMLResult()
public XMLResult(Writer writer, OutputFormat format)
public XMLResult(OutputStream out) throws UnsupportedEncodingException
UnsupportedEncodingException
public XMLResult(OutputStream out, OutputFormat format) throws UnsupportedEncodingException
UnsupportedEncodingException
public XMLWriter getXMLWriter()
public void setXMLWriter(XMLWriter xmlWriter)
public ContentHandler getHandler()
getHandler
in class SAXResult
public LexicalHandler getLexicalHandler()
getLexicalHandler
in class SAXResult
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses