diff options
Diffstat (limited to 'libjava/java/io/PrintStream.java')
-rw-r--r-- | libjava/java/io/PrintStream.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libjava/java/io/PrintStream.java b/libjava/java/io/PrintStream.java index 3101bb5..8fc1cb8 100644 --- a/libjava/java/io/PrintStream.java +++ b/libjava/java/io/PrintStream.java @@ -55,12 +55,30 @@ public class PrintStream extends FilterOutputStream * This leads to some minor duplication, because neither inherits * from the other, and we want to maximize performance. */ + public PrintStream (OutputStream out) + { + this(out, false); + } + + public PrintStream (OutputStream out, boolean auto_flush) + { + super(out); + converter = UnicodeToBytes.getDefaultEncoder(); + error = false; + this.auto_flush = auto_flush; + } + public boolean checkError () { flush(); return error; } + protected void setError () + { + error = true; + } + public void close () { try @@ -258,24 +276,6 @@ public class PrintStream extends FilterOutputStream print(charArray, 0, charArray.length, true); } - public PrintStream (OutputStream out) - { - this(out, false); - } - - public PrintStream (OutputStream out, boolean af) - { - super(out); - converter = UnicodeToBytes.getDefaultEncoder(); - error = false; - auto_flush = af; - } - - protected void setError () - { - error = true; - } - public void write (int oneByte) { try |