com.ice.util
Class ICETracer

java.lang.Object
  |
  +--com.ice.util.ICETracer

public class ICETracer
extends java.lang.Object

The ICETracer class implements the a stack tracing mechanism for debugging use. This is a strictly class based interface. There are no instance methods.

Version:
$Revision: 1.4 $
Author:
Timothy Gerard Endres, time@ice.com.
See Also:
UserProperties

Field Summary
static java.lang.String RCS_ID
           
static java.lang.String RCS_REV
           
 
Constructor Summary
ICETracer()
           
 
Method Summary
static void accumulateInBuffer(java.lang.StringBuffer buffer)
           
static java.lang.StringBuffer getAccumulationBuffer()
           
static java.lang.String getStackLines(java.lang.Throwable thrower)
           
static java.lang.String getStackLines(java.lang.Throwable thrower, int maxLines)
           
static void println(java.lang.String line)
           
static void setEchoAccumulation(boolean state)
           
static void setTraceState(boolean state)
           
static void setWriter(java.io.PrintWriter newOut)
          Sets the tracer's output writer to the BufferedWriter passed in.
static void setWriterToStderr()
           
static void setWriterToStdout()
           
static void trace(java.lang.String line)
           
static void traceIf(boolean flag, java.lang.String line)
           
static void traceWithStack(int maxPrintLines, java.lang.String line)
           
static void traceWithStack(java.lang.String line)
           
static void traceWithStack(java.lang.Throwable thrower, int lines, java.lang.String line)
           
static void traceWithStack(java.lang.Throwable thrower, java.lang.String line)
           
static void turnOffAccumulation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

RCS_REV

public static final java.lang.String RCS_REV
See Also:
Constant Field Values
Constructor Detail

ICETracer

public ICETracer()
Method Detail

setTraceState

public static void setTraceState(boolean state)

setEchoAccumulation

public static void setEchoAccumulation(boolean state)

accumulateInBuffer

public static void accumulateInBuffer(java.lang.StringBuffer buffer)

turnOffAccumulation

public static void turnOffAccumulation()

getAccumulationBuffer

public static java.lang.StringBuffer getAccumulationBuffer()

println

public static void println(java.lang.String line)

trace

public static void trace(java.lang.String line)

traceIf

public static void traceIf(boolean flag,
                           java.lang.String line)

traceWithStack

public static void traceWithStack(java.lang.String line)

getStackLines

public static java.lang.String getStackLines(java.lang.Throwable thrower)

getStackLines

public static java.lang.String getStackLines(java.lang.Throwable thrower,
                                             int maxLines)

traceWithStack

public static void traceWithStack(int maxPrintLines,
                                  java.lang.String line)

traceWithStack

public static void traceWithStack(java.lang.Throwable thrower,
                                  java.lang.String line)

traceWithStack

public static void traceWithStack(java.lang.Throwable thrower,
                                  int lines,
                                  java.lang.String line)

setWriter

public static void setWriter(java.io.PrintWriter newOut)
Sets the tracer's output writer to the BufferedWriter passed in. The new writer newOut must never be System.err or System.err, since the writer will be closed at some point.

Parameters:
newOut - The new buffered writer to send trace output to.

setWriterToStdout

public static void setWriterToStdout()

setWriterToStderr

public static void setWriterToStderr()


Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.