Add PrintStream methods

This commit is contained in:
Alexey Andreev 2016-05-11 21:16:01 +03:00
parent 3f58e3b24f
commit 88a1a39301

View File

@ -167,13 +167,28 @@ public class TPrintStream extends TFilterOutputStream {
printSB(); printSB();
} }
public void println(int i) { public void print(long l) {
sb.append(i).append('\n'); sb.append(l);
printSB(); printSB();
} }
public void print(long l) { public void print(double d) {
sb.append(l); 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(); printSB();
} }
@ -187,11 +202,6 @@ public class TPrintStream extends TFilterOutputStream {
printSB(); printSB();
} }
public void print(TString s) {
sb.append(s);
printSB();
}
public void println(TString s) { public void println(TString s) {
sb.append(s).append('\n'); sb.append(s).append('\n');
printSB(); printSB();