public class JDomWriter extends AbstractDocumentWriter
Constructor and Description |
---|
JDomWriter() |
JDomWriter(Element container) |
JDomWriter(Element container,
JDOMFactory factory) |
JDomWriter(Element container,
JDOMFactory factory,
NameCoder nameCoder) |
JDomWriter(Element container,
JDOMFactory factory,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
JDomWriter(Element, JDOMFactory, NameCoder) instead. |
JDomWriter(Element container,
NameCoder nameCoder) |
JDomWriter(Element container,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
JDomWriter(Element, NameCoder) instead. |
JDomWriter(JDOMFactory factory) |
JDomWriter(JDOMFactory factory,
NameCoder nameCoder) |
JDomWriter(JDOMFactory factory,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
JDomWriter(JDOMFactory, 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 JDomWriter(Element container, JDOMFactory factory, NameCoder nameCoder)
public JDomWriter(Element container, JDOMFactory factory, XmlFriendlyReplacer replacer)
JDomWriter(Element, JDOMFactory, NameCoder)
instead.public JDomWriter(Element container, JDOMFactory factory)
public JDomWriter(JDOMFactory factory, NameCoder nameCoder)
public JDomWriter(JDOMFactory factory, XmlFriendlyReplacer replacer)
JDomWriter(JDOMFactory, NameCoder)
instead.public JDomWriter(JDOMFactory factory)
public JDomWriter(Element container, NameCoder nameCoder)
public JDomWriter(Element container, XmlFriendlyReplacer replacer)
JDomWriter(Element, NameCoder)
instead.public JDomWriter(Element container)
public JDomWriter()
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.