public static class OutputLogger.OutputPrintStream extends PrintStream
Constructor and Description |
---|
OutputPrintStream(OutputLogger owner,
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(Object x)
prints the given object to the streams.
|
void |
print(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(Object x)
prints the given object to the streams (for Throwables we print the stack
trace).
|
void |
println(String x)
prints the given string to the streams.
|
append, append, append, checkError, close, format, format, print, print, print, print, print, printf, printf, println, println, println, println, println, write, write
write
public OutputPrintStream(OutputLogger owner, PrintStream stream) throws Exception
owner
- the owning loggerstream
- the streamException
- if something goes wrongpublic void flush()
flush
in interface Flushable
flush
in class PrintStream
public void print(int x)
print
in class PrintStream
x
- the object to printpublic void print(boolean x)
print
in class PrintStream
x
- the object to printpublic void print(String x)
print
in class PrintStream
x
- the object to printpublic void print(Object x)
print
in class PrintStream
x
- the object to printpublic void println()
println
in class PrintStream
public void println(int x)
println
in class PrintStream
x
- the object to printpublic void println(boolean x)
println
in class PrintStream
x
- the object to printpublic void println(String x)
println
in class PrintStream
x
- the object to printpublic void println(Object x)
println
in class PrintStream
x
- the object to printCopyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.