soc.disableDebug
Class D

java.lang.Object
  extended by soc.disableDebug.D

public class D
extends java.lang.Object

Debug output; the disabled class is always off. D and soc.disableDebug.D have the same interface, to easily switch debug on and off per class.


Field Summary
static boolean ebugOn
           
 
Constructor Summary
D()
           
 
Method Summary
 void debug(java.lang.String text)
          Debug-println this text; for compatibility with log4j.
static void ebug_disable()
          Always disabled; does nothing, since this is the disabled version.
static void ebug_enable()
          Does nothing, since this is the disabled version.
static boolean ebugIsEnabled()
          Is debug currently enabled?
static void ebugPrint(java.lang.String text)
          DOCUMENT ME!
static void ebugPrintln()
          DOCUMENT ME!
static void ebugPrintln(java.lang.String text)
          DOCUMENT ME!
static void ebugPrintStackTrace(java.lang.Throwable ex, java.lang.String prefixMsg)
          If debug is enabled, print the stack trace of this exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ebugOn

public static final boolean ebugOn
See Also:
Constant Field Values
Constructor Detail

D

public D()
Method Detail

ebug_enable

public static final void ebug_enable()
Does nothing, since this is the disabled version.


ebug_disable

public static final void ebug_disable()
Always disabled; does nothing, since this is the disabled version.


ebugIsEnabled

public static final boolean ebugIsEnabled()
Is debug currently enabled?


ebugPrintln

public static final void ebugPrintln(java.lang.String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!

ebugPrintln

public static final void ebugPrintln()
DOCUMENT ME!


ebugPrintStackTrace

public static final void ebugPrintStackTrace(java.lang.Throwable ex,
                                             java.lang.String prefixMsg)
If debug is enabled, print the stack trace of this exception

Parameters:
ex - Exception or other Throwable
prefixMsg - Message for ebugPrintln(String) above the exception, or null

ebugPrint

public static final void ebugPrint(java.lang.String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!

debug

public final void debug(java.lang.String text)
Debug-println this text; for compatibility with log4j. Calls ebugPrintln(String).

Parameters:
text - Text to debug-print