public static class OutputLogger.OutputPrintStream
extends java.io.PrintStream
Constructor and Description |
---|
OutputPrintStream(OutputLogger owner,
java.io.PrintStream stream)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
ignored.
|
void |
print(boolean x)
prints the given boolean to the streams.
|
void |
print(int x)
prints the given int to the streams.
|
void |
print(java.lang.Object x)
prints the given object to the streams.
|
void |
print(java.lang.String x)
prints the given string to the streams.
|
void |
println()
prints a new line to the streams.
|
void |
println(boolean x)
prints the given boolean to the streams.
|
void |
println(int x)
prints the given int to the streams.
|
void |
println(java.lang.Object x)
prints the given object to the streams (for Throwables we print the stack
trace).
|
void |
println(java.lang.String x)
prints the given string to the streams.
|
public OutputPrintStream(OutputLogger owner, java.io.PrintStream stream) throws java.lang.Exception
owner
- the owning loggerstream
- the streamjava.lang.Exception
- if something goes wrongpublic void flush()
flush
in interface java.io.Flushable
flush
in class java.io.PrintStream
public void print(int x)
print
in class java.io.PrintStream
x
- the object to printpublic void print(boolean x)
print
in class java.io.PrintStream
x
- the object to printpublic void print(java.lang.String x)
print
in class java.io.PrintStream
x
- the object to printpublic void print(java.lang.Object x)
print
in class java.io.PrintStream
x
- the object to printpublic void println()
println
in class java.io.PrintStream
public void println(int x)
println
in class java.io.PrintStream
x
- the object to printpublic void println(boolean x)
println
in class java.io.PrintStream
x
- the object to printpublic void println(java.lang.String x)
println
in class java.io.PrintStream
x
- the object to printpublic void println(java.lang.Object x)
println
in class java.io.PrintStream
x
- the object to print