com.thoughtworks.xstream.io.xml
Class Dom4JXmlWriter
java.lang.Object
com.thoughtworks.xstream.io.xml.AbstractXmlWriter
com.thoughtworks.xstream.io.xml.Dom4JXmlWriter
- All Implemented Interfaces:
- ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter
public class Dom4JXmlWriter
- extends AbstractXmlWriter
Method Summary |
void |
addAttribute(java.lang.String key,
java.lang.String value)
|
void |
close()
Close the writer, if necessary. |
void |
endNode()
|
void |
flush()
Flush the writer, if necessary. |
void |
setValue(java.lang.String text)
Write the value (text content) of the current node. |
void |
startNode(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dom4JXmlWriter
public Dom4JXmlWriter(org.dom4j.io.XMLWriter writer)
Dom4JXmlWriter
public Dom4JXmlWriter(org.dom4j.io.XMLWriter writer,
XmlFriendlyReplacer replacer)
- Since:
- 1.2
startNode
public void startNode(java.lang.String name)
setValue
public void setValue(java.lang.String text)
- Description copied from interface:
HierarchicalStreamWriter
- Write the value (text content) of the current node.
addAttribute
public void addAttribute(java.lang.String key,
java.lang.String value)
endNode
public void endNode()
flush
public void flush()
- Description copied from interface:
HierarchicalStreamWriter
- Flush the writer, if necessary.
close
public void close()
- Description copied from interface:
HierarchicalStreamWriter
- Close the writer, if necessary.
Joe Walnes, http://xstream.codehaus.org/