public class DomWriter extends AbstractDocumentWriter
Constructor and Description |
---|
DomWriter(Document document) |
DomWriter(Document document,
NameCoder nameCoder) |
DomWriter(Document document,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Document, NameCoder) instead. |
DomWriter(Element rootElement) |
DomWriter(Element element,
Document document,
NameCoder nameCoder) |
DomWriter(Element element,
Document document,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Element, Document, NameCoder) instead. |
DomWriter(Element rootElement,
NameCoder nameCoder) |
DomWriter(Element rootElement,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
DomWriter(Element, NameCoder) instead. |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
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 DomWriter(Document document)
public DomWriter(Element rootElement)
public DomWriter(Document document, XmlFriendlyReplacer replacer)
DomWriter(Document, NameCoder)
instead.public DomWriter(Element element, Document document, XmlFriendlyReplacer replacer)
DomWriter(Element, Document, NameCoder)
instead.public DomWriter(Element rootElement, XmlFriendlyReplacer replacer)
DomWriter(Element, NameCoder)
instead.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–2016 XStream. All rights reserved.