com.cra.bnet.debug
Class DebugUtils

java.lang.Object
  |
  +--com.cra.bnet.debug.DebugUtils

public abstract class DebugUtils
extends Object

Debugging utilities.


Field Summary
static boolean DEBUG
          Set the system property "com.cra.util.debug.DebugUtils.RELEASE" to the value "RELEASE" to set this field false.
 
Method Summary
static void assertDebug(boolean assertion, RuntimeException exception)
           
static void assertTrue(boolean assertion, RuntimeException exception)
          This method was changed from assert to assertTrue since assert is a keywork in Java 1.4.
static PrintWriter getDebugOutput()
           
static void printException(Exception e, String userMsg)
           
static void setDebugOutput(PrintWriter output)
          Default output is System.out.
static void traceIf(boolean assertion, String msg)
           
static void traceMsg(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
Set the system property "com.cra.util.debug.DebugUtils.RELEASE" to the value "RELEASE" to set this field false.

Method Detail

setDebugOutput

public static void setDebugOutput(PrintWriter output)
Default output is System.out.


getDebugOutput

public static PrintWriter getDebugOutput()

assertTrue

public static void assertTrue(boolean assertion,
                              RuntimeException exception)
This method was changed from assert to assertTrue since assert is a keywork in Java 1.4.


assertDebug

public static void assertDebug(boolean assertion,
                               RuntimeException exception)

traceMsg

public static void traceMsg(String msg)

traceIf

public static void traceIf(boolean assertion,
                           String msg)

printException

public static void printException(Exception e,
                                  String userMsg)