org.sapia.ubik.util
Class NullDebug

java.lang.Object
  extended by org.sapia.ubik.util.NullDebug
All Implemented Interfaces:
Debug

public class NullDebug
extends java.lang.Object
implements Debug

A Debug implementation that outputs nothing.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2005 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
NullDebug()
           
 
Method Summary
 boolean on()
           
 void on(boolean on)
           
 java.io.PrintStream out()
           
 void out(java.lang.Class caller, java.lang.String msg)
          Outputs the given message, originating from an instance of the given class.
 void out(java.lang.Class caller, java.lang.String msg, java.lang.Throwable err)
          Outputs the given message and error, originating from an instance of the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullDebug

public NullDebug()
Method Detail

on

public boolean on()
Specified by:
on in interface Debug
Returns:
true if debugging is on.

on

public void on(boolean on)
Specified by:
on in interface Debug
Parameters:
on - true if debugging should be turned on, false otherwise.

out

public java.io.PrintStream out()
Specified by:
out in interface Debug
Returns:
the PrintStream this is used to perform the output.

out

public void out(java.lang.Class caller,
                java.lang.String msg,
                java.lang.Throwable err)
Description copied from interface: Debug
Outputs the given message and error, originating from an instance of the given class.

Specified by:
out in interface Debug
Parameters:
caller - the Class from which the call is made.
msg - the message to output.
err - a Throwable.

out

public void out(java.lang.Class caller,
                java.lang.String msg)
Description copied from interface: Debug
Outputs the given message, originating from an instance of the given class.

Specified by:
out in interface Debug
Parameters:
caller - the Class from which the call is made.
msg - the message to output.


Copyright © 2010 Sapia OSS. All Rights Reserved.