Package org.dom4j.io
Class DOMDocumentResult
- java.lang.Object
-
- javax.xml.transform.sax.SAXResult
-
- org.dom4j.io.DOMDocumentResult
-
- All Implemented Interfaces:
javax.xml.transform.Result
public class DOMDocumentResult extends javax.xml.transform.sax.SAXResult
DOMDocumentResult
implements a JAXPSAXResult
for aDocument
.
-
-
Constructor Summary
Constructors Constructor Description DOMDocumentResult()
DOMDocumentResult(DOMSAXContentHandler contentHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Document
getDocument()
Retrieves w3c dom object generated via transformationvoid
setHandler(org.xml.sax.ContentHandler handler)
void
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
-
-
-
Constructor Detail
-
DOMDocumentResult
public DOMDocumentResult()
-
DOMDocumentResult
public DOMDocumentResult(DOMSAXContentHandler contentHandler)
-
-
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 classjavax.xml.transform.sax.SAXResult
-
setLexicalHandler
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
- Overrides:
setLexicalHandler
in classjavax.xml.transform.sax.SAXResult
-
-