Package org.dom4j.io
Class XMLResult
- java.lang.Object
-
- javax.xml.transform.sax.SAXResult
-
- org.dom4j.io.XMLResult
-
- All Implemented Interfaces:
javax.xml.transform.Result
public class XMLResult extends javax.xml.transform.sax.SAXResultXMLResultimplements a JAXPSAXResultfor an output stream with support for pretty printing and control over how the XML is formatted.
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ContentHandlergetHandler()org.xml.sax.ext.LexicalHandlergetLexicalHandler()XMLWritergetXMLWriter()voidsetXMLWriter(XMLWriter writer)
-
-
-
Constructor Detail
-
XMLResult
public XMLResult()
-
XMLResult
public XMLResult(java.io.Writer writer)
-
XMLResult
public XMLResult(java.io.Writer writer, OutputFormat format)
-
XMLResult
public XMLResult(java.io.OutputStream out) throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
XMLResult
public XMLResult(java.io.OutputStream out, OutputFormat format) throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
XMLResult
public XMLResult(XMLWriter xmlWriter)
-
-
Method Detail
-
getXMLWriter
public XMLWriter getXMLWriter()
-
setXMLWriter
public void setXMLWriter(XMLWriter writer)
-
getHandler
public org.xml.sax.ContentHandler getHandler()
- Overrides:
getHandlerin classjavax.xml.transform.sax.SAXResult
-
getLexicalHandler
public org.xml.sax.ext.LexicalHandler getLexicalHandler()
- Overrides:
getLexicalHandlerin classjavax.xml.transform.sax.SAXResult
-
-