com.niggle.util
Class ConsoleLog

java.lang.Object
  |
  +--com.niggle.util.ConsoleLog
All Implemented Interfaces:
Log

public class ConsoleLog
extends java.lang.Object
implements Log

Make System.(out|err) support the LogIF interface. System.err used by default. Actually any PrintStream can be wrapped in this.


Constructor Summary
ConsoleLog()
           
ConsoleLog(java.io.PrintStream ps)
           
 
Method Summary
 java.io.PrintStream getPrintStream()
          Get the value of printStream.
 void println(java.lang.Object o)
          Call System.out.println with the toString() of the Object.
 void setPrintStream(java.io.PrintStream v)
          Set the value of printStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLog

public ConsoleLog()

ConsoleLog

public ConsoleLog(java.io.PrintStream ps)
Method Detail

getPrintStream

public final java.io.PrintStream getPrintStream()
Get the value of printStream.
Returns:
Value of printStream.

setPrintStream

public final void setPrintStream(java.io.PrintStream v)
Set the value of printStream.
Parameters:
v - Value to assign to printStream.

println

public void println(java.lang.Object o)
Call System.out.println with the toString() of the Object.
Specified by:
println in interface Log