com.thoughtworks.xstream.io.xml
Class PrettyPrintWriter
java.lang.Object
com.thoughtworks.xstream.io.xml.PrettyPrintWriter
- All Implemented Interfaces:
- HierarchicalStreamWriter
- Direct Known Subclasses:
- CompactWriter
- public class PrettyPrintWriter
- extends java.lang.Object
- implements HierarchicalStreamWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrettyPrintWriter
public PrettyPrintWriter(java.io.Writer writer,
char[] lineIndenter)
PrettyPrintWriter
public PrettyPrintWriter(java.io.Writer writer,
java.lang.String lineIndenter)
PrettyPrintWriter
public PrettyPrintWriter(java.io.PrintWriter writer)
PrettyPrintWriter
public PrettyPrintWriter(java.io.Writer writer)
startNode
public void startNode(java.lang.String name)
- Specified by:
startNode
in interface HierarchicalStreamWriter
setValue
public void setValue(java.lang.String text)
- Specified by:
setValue
in interface HierarchicalStreamWriter
addAttribute
public void addAttribute(java.lang.String key,
java.lang.String value)
- Specified by:
addAttribute
in interface HierarchicalStreamWriter
endNode
public void endNode()
- Specified by:
endNode
in interface HierarchicalStreamWriter
endOfLine
protected void endOfLine()
Joe Walnes, http://xstream.codehaus.org/