com.thoughtworks.xstream.io.xml
Class CompactWriter

java.lang.Object
  extended by com.thoughtworks.xstream.io.AbstractWriter
      extended by com.thoughtworks.xstream.io.xml.AbstractXmlWriter
          extended by com.thoughtworks.xstream.io.xml.PrettyPrintWriter
              extended by com.thoughtworks.xstream.io.xml.CompactWriter
All Implemented Interfaces:
ExtendedHierarchicalStreamWriter, HierarchicalStreamWriter, XmlFriendlyWriter

public class CompactWriter
extends PrettyPrintWriter


Field Summary
 
Fields inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
depth, XML_1_0, XML_1_1, XML_QUIRKS
 
Constructor Summary
CompactWriter(Writer writer)
           
CompactWriter(Writer writer, int mode)
           
CompactWriter(Writer writer, int mode, NameCoder nameCoder)
           
CompactWriter(Writer writer, int mode, XmlFriendlyReplacer replacer)
          Deprecated. As of 1.4 use CompactWriter(Writer, int, NameCoder) instead.
CompactWriter(Writer writer, NameCoder nameCoder)
           
CompactWriter(Writer writer, XmlFriendlyReplacer replacer)
          Deprecated. As of 1.4 use CompactWriter(Writer, NameCoder) instead.
 
Method Summary
protected  void endOfLine()
           
 
Methods inherited from class com.thoughtworks.xstream.io.xml.PrettyPrintWriter
addAttribute, close, endNode, flush, getNewLine, setValue, startNode, startNode, writeAttributeValue, writeText
 
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlWriter
escapeXmlName
 
Methods inherited from class com.thoughtworks.xstream.io.AbstractWriter
encodeAttribute, encodeNode, underlyingWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompactWriter

public CompactWriter(Writer writer)

CompactWriter

public CompactWriter(Writer writer,
                     int mode)
Since:
1.3

CompactWriter

public CompactWriter(Writer writer,
                     NameCoder nameCoder)
Since:
1.4

CompactWriter

public CompactWriter(Writer writer,
                     int mode,
                     NameCoder nameCoder)
Since:
1.4

CompactWriter

public CompactWriter(Writer writer,
                     XmlFriendlyReplacer replacer)
Deprecated. As of 1.4 use CompactWriter(Writer, NameCoder) instead.


CompactWriter

public CompactWriter(Writer writer,
                     int mode,
                     XmlFriendlyReplacer replacer)
Deprecated. As of 1.4 use CompactWriter(Writer, int, NameCoder) instead.

Since:
1.3
Method Detail

endOfLine

protected void endOfLine()
Overrides:
endOfLine in class PrettyPrintWriter


Copyright © 2004-2014 XStream. All Rights Reserved.