jtp.context
Class PrintStreamTracer
java.lang.Object
|
+--jtp.context.AbstractTracer
|
+--jtp.context.PrintStreamTracer
- All Implemented Interfaces:
- Tracer
- public class PrintStreamTracer
- extends AbstractTracer
An implementation of Tracer that writes trace information
to a PrintStream
. The stream that is written
to is set with setOutput(PrintStream)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
output
protected PrintStream output
PrintStreamTracer
public PrintStreamTracer()
getOutput
public PrintStream getOutput()
- Get the value of output.
- Returns:
- Value of output.
setOutput
public void setOutput(PrintStream v)
- Set the value of output.
- Parameters:
v
- Value to assign to output.
trace
public void trace(int lev,
Object o)
- Specified by:
trace
in class AbstractTracer