jfig.utils
Class ExceptionTracer

java.lang.Object
  extended byjfig.utils.ExceptionTracer

public class ExceptionTracer
extends java.lang.Object

manage java exception traces.

ExceptionTracer: a simple utility class to print (while debugging) or suppress (for the production version) Exception traces and debug messages.


Constructor Summary
ExceptionTracer()
           
 
Method Summary
static boolean getEnabled()
           
static void message(java.lang.String s)
          If printing is enabled, print the message "s" on our PrintStream.
static void setEnabled(boolean b)
           
static void setPrintStream(java.io.PrintStream ps)
           
static void trace(java.lang.Throwable e)
          If printing is enabled, print the stack trace for Throwable "e" to out PrintStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionTracer

public ExceptionTracer()
Method Detail

getEnabled

public static boolean getEnabled()

setEnabled

public static void setEnabled(boolean b)

setPrintStream

public static void setPrintStream(java.io.PrintStream ps)

trace

public static void trace(java.lang.Throwable e)
If printing is enabled, print the stack trace for Throwable "e" to out PrintStream.


message

public static void message(java.lang.String s)
If printing is enabled, print the message "s" on our PrintStream.