Class DOMWriter
java.lang.Object
org.dom4j.io.DOMWriter
DOMWriter takes a DOM4J tree and outputs it as a W3C DOM
object- Version:
- $Revision: 1.17 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendDOMTree(Document domDocument, Node domCurrent, String text) protected voidappendDOMTree(Document domDocument, Node domCurrent, List<Node> content) protected voidappendDOMTree(Document domDocument, Node domCurrent, CDATA cdata) protected voidappendDOMTree(Document domDocument, Node domCurrent, Comment comment) protected voidappendDOMTree(Document domDocument, Node domCurrent, Element element) protected voidappendDOMTree(Document domDocument, Node domCurrent, Entity entity) protected voidappendDOMTree(Document domDoc, Node domCurrent, ProcessingInstruction pi) protected StringattributeNameForNamespace(Namespace namespace) protected DocumentcreateDomDocument(Document document) protected DocumentcreateDomDocument(Document document, DOMImplementation domImpl) protected DocumentClass<?> protected booleanprotected voidvoidsetDomDocumentClass(Class<?> domDocumentClass) Sets the DOMDocumentimplementation class used by the writer when creating DOM documents.voidSets the DOMDocumentimplementation class name used by the writer when creating DOM documents.write(Document document, DOMImplementation domImpl) protected voidwriteNamespace(Element domElement, Namespace namespace)
-
Constructor Details
-
DOMWriter
public DOMWriter() -
DOMWriter
-
-
Method Details
-
getDomDocumentClass
- Throws:
DocumentException
-
setDomDocumentClass
-
setDomDocumentClassName
Sets the DOMDocumentimplementation class name used by the writer when creating DOM documents.- Parameters:
name- is the name of the Class implementing theDocumentinterface- Throws:
DocumentException- if the class could not be loaded
-
write
- Throws:
DocumentException
-
write
- Throws:
DocumentException
-
appendDOMTree
-
appendDOMTree
-
appendDOMTree
-
appendDOMTree
-
appendDOMTree
-
appendDOMTree
-
appendDOMTree
-
writeNamespace
-
attributeNameForNamespace
-
createDomDocument
- Throws:
DocumentException
-
createDomDocumentViaJAXP
- Throws:
DocumentException
-
createDomDocument
protected Document createDomDocument(Document document, DOMImplementation domImpl) throws DocumentException - Throws:
DocumentException
-
isNamespaceDeclaration
-
resetNamespaceStack
protected void resetNamespaceStack()
-