Package weka.core.logging
Class OutputLogger.OutputPrintStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
weka.core.logging.OutputLogger.OutputPrintStream
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Enclosing class:
- OutputLogger
A print stream class to capture all data from stdout and stderr.
- Version:
- $Revision: 4716 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Constructor Summary
ConstructorsConstructorDescriptionOutputPrintStream
(OutputLogger owner, PrintStream stream) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
prints the given object to the streams.void
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
prints the given object to the streams (for Throwables we print the stack trace).void
prints the given string to the streams.Methods inherited from class java.io.PrintStream
append, append, append, checkError, close, format, format, print, print, print, print, print, printf, printf, println, println, println, println, println, write, write, write, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
OutputPrintStream
Default constructor.- Parameters:
owner
- the owning loggerstream
- the stream- Throws:
Exception
- if something goes wrong
-
-
Method Details
-
flush
public void flush()ignored.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classPrintStream
-
print
public void print(int x) prints the given int to the streams.- Overrides:
print
in classPrintStream
- Parameters:
x
- the object to print
-
print
public void print(boolean x) prints the given boolean to the streams.- Overrides:
print
in classPrintStream
- Parameters:
x
- the object to print
-
print
prints the given string to the streams.- Overrides:
print
in classPrintStream
- Parameters:
x
- the object to print
-
print
prints the given object to the streams.- Overrides:
print
in classPrintStream
- Parameters:
x
- the object to print
-
println
public void println()prints a new line to the streams.- Overrides:
println
in classPrintStream
-
println
public void println(int x) prints the given int to the streams.- Overrides:
println
in classPrintStream
- Parameters:
x
- the object to print
-
println
public void println(boolean x) prints the given boolean to the streams.- Overrides:
println
in classPrintStream
- Parameters:
x
- the object to print
-
println
prints the given string to the streams.- Overrides:
println
in classPrintStream
- Parameters:
x
- the object to print
-
println
prints the given object to the streams (for Throwables we print the stack trace).- Overrides:
println
in classPrintStream
- Parameters:
x
- the object to print
-