public class XomWriter extends AbstractDocumentWriter
Constructor and Description |
---|
XomWriter() |
XomWriter(Element parentElement) |
XomWriter(Element parentElement,
NameCoder nameCoder) |
XomWriter(Element parentElement,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4 use
XomWriter(Element, NameCoder) instead |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
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 XomWriter()
public XomWriter(Element parentElement)
public XomWriter(Element parentElement, NameCoder nameCoder)
public XomWriter(Element parentElement, XmlFriendlyReplacer replacer)
XomWriter(Element, NameCoder)
insteadprotected 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 addAttribute(java.lang.String name, java.lang.String value)
public void setValue(java.lang.String text)
HierarchicalStreamWriter
Copyright © 2004–2024 XStream. All rights reserved.