public class JDom2Writer extends AbstractDocumentWriter
Constructor and Description |
---|
JDom2Writer() |
JDom2Writer(Element container) |
JDom2Writer(Element container,
JDOMFactory factory) |
JDom2Writer(Element container,
JDOMFactory factory,
NameCoder nameCoder) |
JDom2Writer(Element container,
NameCoder nameCoder) |
JDom2Writer(JDOMFactory factory) |
JDom2Writer(JDOMFactory factory,
NameCoder nameCoder) |
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 JDom2Writer(Element container, JDOMFactory factory, NameCoder nameCoder)
public JDom2Writer(Element container, JDOMFactory factory)
public JDom2Writer(JDOMFactory factory, NameCoder nameCoder)
public JDom2Writer(JDOMFactory factory)
public JDom2Writer(Element container, NameCoder nameCoder)
public JDom2Writer(Element container)
public JDom2Writer()
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.