FileDocCategorySizeDatePackage
PrintWrapper.javaAPI DocExample2023Tue Dec 22 12:57:46 GMT 1998tuning.console

PrintWrapper

public class PrintWrapper extends PrintStream

Fields Summary
PrintStream
wrappedOut
public static boolean
TUNING
Constructors Summary
public PrintWrapper(PrintStream out)

    super(out);
    wrappedOut = out;
  
Methods Summary
public booleancheckError()

return wrappedOut.checkError();
public voidclose()

wrappedOut.close();
public voidflush()

wrappedOut.flush();
public static voidinstall()


     
  
    System.setOut(new PrintWrapper(System.out));
    System.setErr(new PrintWrapper(System.err));
  
public voidprint(float x)

if (!TUNING) wrappedOut.print(x);
public voidprint(int x)

if (!TUNING) wrappedOut.print(x);
public voidprint(long x)

if (!TUNING) wrappedOut.print(x);
public voidprint(java.lang.Object x)

if (!TUNING) wrappedOut.print(x);
public voidprint(java.lang.String x)

if (!TUNING) wrappedOut.print(x);
public voidprint(boolean x)

if (!TUNING) if (!TUNING) wrappedOut.print(x);
public voidprint(char x)

if (!TUNING) wrappedOut.print(x);
public voidprint(char[] x)

if (!TUNING) wrappedOut.print(x);
public voidprint(double x)

if (!TUNING) wrappedOut.print(x);
public voidprintln()

if (!TUNING) wrappedOut.println();
public voidprintln(boolean x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(char x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(char[] x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(double x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(float x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(int x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(long x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(java.lang.Object x)

if (!TUNING) wrappedOut.println(x);
public voidprintln(java.lang.String x)

if (!TUNING) wrappedOut.println(x);
public voidwrite(byte[] x, int y, int z)

if (!TUNING) wrappedOut.write(x,y,z);
public voidwrite(int x)

if (!TUNING) wrappedOut.write(x);