KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > xstream > io > xml > CompactWriter


1 package com.thoughtworks.xstream.io.xml;
2
3 import java.io.PrintWriter JavaDoc;
4 import java.io.Writer JavaDoc;
5
6 public class CompactWriter extends PrettyPrintWriter {
7
8     public CompactWriter(PrintWriter JavaDoc writer) {
9         super(writer);
10     }
11
12     public CompactWriter(Writer JavaDoc writer) {
13         super(writer);
14     }
15
16     protected void endOfLine() {
17         // override parent: don't write anything at end of line
18
}
19 }
20
Popular Tags