From 88a1a39301f99d8d55e38c399bc5adb00865bf2b Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 11 May 2016 21:16:01 +0300 Subject: [PATCH] Add PrintStream methods --- .../teavm/classlib/java/io/TPrintStream.java | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java index 417f9376c..0d297640c 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java +++ b/classlib/src/main/java/org/teavm/classlib/java/io/TPrintStream.java @@ -167,13 +167,28 @@ public class TPrintStream extends TFilterOutputStream { printSB(); } - public void println(int i) { - sb.append(i).append('\n'); + public void print(long l) { + sb.append(l); printSB(); } - public void print(long l) { - sb.append(l); + public void print(double d) { + sb.append(d); + printSB(); + } + + public void print(TString s) { + sb.append(s); + printSB(); + } + + public void print(TObject s) { + sb.append(s); + printSB(); + } + + public void println(int i) { + sb.append(i).append('\n'); printSB(); } @@ -187,11 +202,6 @@ public class TPrintStream extends TFilterOutputStream { printSB(); } - public void print(TString s) { - sb.append(s); - printSB(); - } - public void println(TString s) { sb.append(s).append('\n'); printSB();