public class Dom4JWriter extends AbstractDocumentWriter
Constructor and Description |
---|
Dom4JWriter() |
Dom4JWriter(Branch root) |
Dom4JWriter(Branch root,
DocumentFactory factory,
NameCoder nameCoder) |
Dom4JWriter(Branch root,
DocumentFactory factory,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
Dom4JWriter(Branch, DocumentFactory, NameCoder) instead. |
Dom4JWriter(Branch root,
NameCoder nameCoder) |
Dom4JWriter(Branch root,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
Dom4JWriter(Branch, NameCoder) instead |
Dom4JWriter(DocumentFactory documentFactory) |
Dom4JWriter(DocumentFactory factory,
NameCoder nameCoder) |
Dom4JWriter(DocumentFactory factory,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
Dom4JWriter(DocumentFactory, NameCoder) instead. |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
String value) |
protected Object |
createNode(String name)
Create a node.
|
void |
setValue(String text)
Write the value (text content) of the current node.
|
close, endNode, endNodeInternally, flush, getCurrent, getTopLevelNodes, startNode
escapeXmlName
encodeAttribute, encodeNode, startNode, underlyingWriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
underlyingWriter
public Dom4JWriter(Branch root, DocumentFactory factory, NameCoder nameCoder)
public Dom4JWriter(DocumentFactory factory, NameCoder nameCoder)
public Dom4JWriter(Branch root, NameCoder nameCoder)
public Dom4JWriter(Branch root, DocumentFactory factory, XmlFriendlyReplacer replacer)
Dom4JWriter(Branch, DocumentFactory, NameCoder)
instead.public Dom4JWriter(DocumentFactory factory, XmlFriendlyReplacer replacer)
Dom4JWriter(DocumentFactory, NameCoder)
instead.public Dom4JWriter(DocumentFactory documentFactory)
public Dom4JWriter(Branch root, XmlFriendlyReplacer replacer)
Dom4JWriter(Branch, NameCoder)
insteadpublic Dom4JWriter(Branch root)
public Dom4JWriter()
protected Object createNode(String name)
AbstractDocumentWriter
AbstractDocumentWriter.getCurrent()
returns null
the node is a top level node.createNode
in class AbstractDocumentWriter
name
- the node namepublic void setValue(String text)
HierarchicalStreamWriter
Copyright © 2004–2017 XStream. All rights reserved.