Package org.dom4j.io

Class DOMDocumentResult

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

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

    DOMDocumentResult implements a JAXP SAXResult for a Document.

    • 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.w3c.dom.Document getDocument()
      Retrieves w3c dom object generated via transformation
      void setHandler(org.xml.sax.ContentHandler handler)  
      void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)  
      • Methods inherited from class javax.xml.transform.sax.SAXResult

        getHandler, getLexicalHandler, getSystemId, setSystemId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOMDocumentResult

        public DOMDocumentResult()
    • Method Detail

      • getDocument

        public org.w3c.dom.Document getDocument()
        Retrieves w3c dom object generated via transformation
        Returns:
        the Document created by the transformation
      • setHandler

        public void setHandler(org.xml.sax.ContentHandler handler)
        Overrides:
        setHandler in class javax.xml.transform.sax.SAXResult
      • setLexicalHandler

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