com.vgrs.xcode.util
Class Debug

java.lang.Object
  extended by com.vgrs.xcode.util.Debug

public class Debug
extends java.lang.Object

Log debugging information to System.out/System.err.


Constructor Summary
Debug()
           
 
Method Summary
static void fail(java.lang.String aInput)
          Log information to Standard Error.
static void log(java.lang.String aInput)
          Log information to Standard Error.
static void pass(java.lang.String aInput)
          Log information to Standard Out.
 
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

log

public static void log(java.lang.String aInput)
Log information to Standard Error. This method can be used to display debug information during development.

Parameters:
aInput - A message to log

pass

public static void pass(java.lang.String aInput)
Log information to Standard Out. This method is commonly used in test routines to display output after a successful execution. Input is not modified.

Parameters:
aInput - A message to log

fail

public static void fail(java.lang.String aInput)
Log information to Standard Error. This method is commonly used in test routines to display output after a failed execution. A "Number Sign" (#) character is prefixed to the input. This facilitates sequenced executions on the command-line. For instance, users can use the "race" command to decode an input file, and write the contents out to an output file. This entire output file can then be fed into the "idna" routine. Records which failed the original race decode will be ignored by the idna routine because they have been prefixed with a "#" character.

Parameters:
aInput - A message to log


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved