Package org.dom4j.io

Class XMLResult

  • All Implemented Interfaces:
    javax.xml.transform.Result

    public class XMLResult
    extends javax.xml.transform.sax.SAXResult

    XMLResult implements a JAXP SAXResultfor an output stream with support for pretty printing and control over how the XML is formatted.

    • Field Summary

      • Fields inherited from class javax.xml.transform.sax.SAXResult

        FEATURE
      • Fields inherited from interface javax.xml.transform.Result

        PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.ContentHandler getHandler()  
      org.xml.sax.ext.LexicalHandler getLexicalHandler()  
      XMLWriter getXMLWriter()  
      void setXMLWriter(XMLWriter writer)  
      • Methods inherited from class javax.xml.transform.sax.SAXResult

        getSystemId, setHandler, setLexicalHandler, setSystemId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        getHandler in class javax.xml.transform.sax.SAXResult
      • getLexicalHandler

        public org.xml.sax.ext.LexicalHandler getLexicalHandler()
        Overrides:
        getLexicalHandler in class javax.xml.transform.sax.SAXResult