com.novell.ecb.java.util
Class Debug

java.lang.Object
  |
  +--com.novell.ecb.java.util.Debug

public class Debug
extends java.lang.Object

Provides means for debugging.


Constructor Summary
Debug()
           
 
Method Summary
static Debug getInstance(java.lang.String option)
          Gets a debug object corresponding to whether or not the given option is set and sets the prefix to be the same as option.
static Debug getInstance(java.lang.String option, java.lang.String prefix)
          Get a Debug object corresponding to whether or not the given option is set and sets the prefix as specified.
static void Help()
          Prints out debugging options.
static boolean isOn(java.lang.String option)
          Determines whether the system property "security.debug" contains the string for the specified option.
 void println()
          Prints a blank line to stderr that is prefixed as specified by the call to getInstance.
 void println(java.lang.String message)
          Prints the specified message to stderr that is prefixed as specified by the call to getInstance.
static void println(java.lang.String prefix, java.lang.String message)
          Prints a message to stderr prefixed as specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

Help

public static void Help()
Prints out debugging options.


getInstance

public static Debug getInstance(java.lang.String option)
Gets a debug object corresponding to whether or not the given option is set and sets the prefix to be the same as option.

Parameters:
option - The debugging option.

getInstance

public static Debug getInstance(java.lang.String option,
                                java.lang.String prefix)
Get a Debug object corresponding to whether or not the given option is set and sets the prefix as specified.

Parameters:
option - The debugging option.
prefix - The prefix.

isOn

public static boolean isOn(java.lang.String option)
Determines whether the system property "security.debug" contains the string for the specified option.

Parameters:
option - The option string.

println

public void println(java.lang.String message)
Prints the specified message to stderr that is prefixed as specified by the call to getInstance.

Parameters:
message - The message to print.

println

public void println()
Prints a blank line to stderr that is prefixed as specified by the call to getInstance.


println

public static void println(java.lang.String prefix,
                           java.lang.String message)
Prints a message to stderr prefixed as specified.

Parameters:
prefix - The prefix.
message - The message to print.


Copyright © 2001-2003 Novell, Inc. All Rights Reserved.