01: /*
02: * Copyright (C) 2004, 2005, 2006 Joe Walnes.
03: * Copyright (C) 2006, 2007, 2008 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 07. March 2004 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.io.xml;
13:
14: import java.io.Writer;
15:
16: public class CompactWriter extends PrettyPrintWriter {
17:
18: public CompactWriter(Writer writer) {
19: super (writer);
20: }
21:
22: /**
23: * @since 1.3
24: */
25: public CompactWriter(Writer writer, int mode) {
26: super (writer, mode);
27: }
28:
29: public CompactWriter(Writer writer, XmlFriendlyReplacer replacer) {
30: super (writer, replacer);
31: }
32:
33: /**
34: * @since 1.3
35: */
36: public CompactWriter(Writer writer, int mode,
37: XmlFriendlyReplacer replacer) {
38: super (writer, mode, replacer);
39: }
40:
41: protected void endOfLine() {
42: // override parent: don't write anything at end of line
43: }
44: }
|