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:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
- Enclosing class:
- OutputLogger
public static class OutputLogger.OutputPrintStream extends java.io.PrintStreamA 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
Constructors Constructor Description OutputPrintStream(OutputLogger owner, java.io.PrintStream stream)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()ignored.voidprint(boolean x)prints the given boolean to the streams.voidprint(int x)prints the given int to the streams.voidprint(java.lang.Object x)prints the given object to the streams.voidprint(java.lang.String x)prints the given string to the streams.voidprintln()prints a new line to the streams.voidprintln(boolean x)prints the given boolean to the streams.voidprintln(int x)prints the given int to the streams.voidprintln(java.lang.Object x)prints the given object to the streams (for Throwables we print the stack trace).voidprintln(java.lang.String x)prints the given string to the streams.
-
-
-
Constructor Detail
-
OutputPrintStream
public OutputPrintStream(OutputLogger owner, java.io.PrintStream stream) throws java.lang.Exception
Default constructor.- Parameters:
owner- the owning loggerstream- the stream- Throws:
java.lang.Exception- if something goes wrong
-
-
Method Detail
-
flush
public void flush()
ignored.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.PrintStream
-
print
public void print(int x)
prints the given int to the streams.- Overrides:
printin classjava.io.PrintStream- Parameters:
x- the object to print
-
print
public void print(boolean x)
prints the given boolean to the streams.- Overrides:
printin classjava.io.PrintStream- Parameters:
x- the object to print
-
print
public void print(java.lang.String x)
prints the given string to the streams.- Overrides:
printin classjava.io.PrintStream- Parameters:
x- the object to print
-
print
public void print(java.lang.Object x)
prints the given object to the streams.- Overrides:
printin classjava.io.PrintStream- Parameters:
x- the object to print
-
println
public void println()
prints a new line to the streams.- Overrides:
printlnin classjava.io.PrintStream
-
println
public void println(int x)
prints the given int to the streams.- Overrides:
printlnin classjava.io.PrintStream- Parameters:
x- the object to print
-
println
public void println(boolean x)
prints the given boolean to the streams.- Overrides:
printlnin classjava.io.PrintStream- Parameters:
x- the object to print
-
println
public void println(java.lang.String x)
prints the given string to the streams.- Overrides:
printlnin classjava.io.PrintStream- Parameters:
x- the object to print
-
println
public void println(java.lang.Object x)
prints the given object to the streams (for Throwables we print the stack trace).- Overrides:
printlnin classjava.io.PrintStream- Parameters:
x- the object to print
-
-