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(java.lang.String key,
java.lang.String value) |
protected java.lang.Object |
createNode(java.lang.String name)
Create a node.
|
void |
setValue(java.lang.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 java.lang.Object createNode(java.lang.String name)
AbstractDocumentWriter
AbstractDocumentWriter.getCurrent()
returns null
the node is a top level node.createNode
in class AbstractDocumentWriter
name
- the node namepublic void setValue(java.lang.String text)
HierarchicalStreamWriter
public void addAttribute(java.lang.String key, java.lang.String value)
Copyright © 2004–2024 XStream. All rights reserved.