sun.module
Class Debug

java.lang.Object
  extended by sun.module.Debug

public class Debug
extends Object

A utility class for debuging. This class has be shamefully lifted from sun.security.util.Debug

Version:
%V%
Author:
Stanley M. Ho

Constructor Summary
Debug()
           
 
Method Summary
static Debug getInstance(String option)
          Get a Debug object corresponding to whether or not the given option is set.
static Debug getInstance(String option, String prefix)
          Get a Debug object corresponding to whether or not the given option is set.
static void Help()
           
static boolean isOn(String option)
          True if the system property "java.module.debug" contains the string "option".
 void println()
          print a blank line to stderr that is prefixed with the prefix.
 void println(String message)
          print a message to stderr that is prefixed with the prefix created from the call to getInstance.
static void println(String prefix, String message)
          print a message to stderr that is prefixed with the prefix.
static String toString(byte[] b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

Help

public static void Help()

getInstance

public static Debug getInstance(String option)
Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be the same as option.


getInstance

public static Debug getInstance(String option,
                                String prefix)
Get a Debug object corresponding to whether or not the given option is set. Set the prefix to be prefix.


isOn

public static boolean isOn(String option)
True if the system property "java.module.debug" contains the string "option".


println

public void println(String message)
print a message to stderr that is prefixed with the prefix created from the call to getInstance.


println

public void println()
print a blank line to stderr that is prefixed with the prefix.


println

public static void println(String prefix,
                           String message)
print a message to stderr that is prefixed with the prefix.


toString

public static String toString(byte[] b)