JTP API Documentation

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).


Field Summary
protected  PrintStream output
           
 
Fields inherited from class jtp.context.AbstractTracer
lev, silent, verb
 
Constructor Summary
PrintStreamTracer()
           
 
Method Summary
 PrintStream getOutput()
          Get the value of output.
 void setOutput(PrintStream v)
          Set the value of output.
 void trace(int lev, Object o)
           
 
Methods inherited from class jtp.context.AbstractTracer
changeTraceDepth, getTraceDepth, getVerbosityLevel, setTraceDepth, setVerbosityLevel, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

protected PrintStream output
Constructor Detail

PrintStreamTracer

public PrintStreamTracer()
Method Detail

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

JTP API Documentation