IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved

idebug
Class ConsoleOutput

java.lang.Object
  |
  +--idebug.DebugOutputBase
        |
        +--idebug.ConsoleOutput
All Implemented Interfaces:
java.lang.Cloneable, DebugOutput

public class ConsoleOutput
extends DebugOutputBase
implements DebugOutput, java.lang.Cloneable

The primary class used to send debugging messages to the Java console via the stderr file descriptor.

Version:
$Revision: 2146 $ $Date: 2005-02-13 16:54:27 +0000 (Sun, 13 Feb 2005) $
Author:
Joseph R. Kiniry
See Also:
Context, Debug

Fields inherited from class idebug.DebugOutputBase
debug
 
Constructor Summary
ConsoleOutput(Debug d)
           Construct a new ConsoleOutput class.
 
Method Summary
 java.lang.Object clone()
           
 java.io.Writer getWriter()
           Returns a Writer for this output interface if one is available.
 void printMsg(int level, java.lang.String message)
           Print out the debugging message, no questions asked.
 void printMsg(java.lang.String message)
           Print out the debugging message, no questions asked.
 void printMsg(java.lang.String category, java.lang.String message)
           Print out the debugging message, no questions asked.
 
Methods inherited from class idebug.DebugOutputBase
isValidCategory, isValidLevel, print, print, print, print, println, println, println, println
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface idebug.DebugOutput
isValidCategory, isValidLevel, print, print, print, print, println, println, println, println
 

Constructor Detail

ConsoleOutput

public ConsoleOutput(Debug d)

Construct a new ConsoleOutput class.

Parameters:
d - the Debug class associated with this ConsoleOutput.
Method Detail

printMsg

public void printMsg(java.lang.String category,
                     java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
category - is the category of this message.
message - is the debugging message to print.

printMsg

public void printMsg(int level,
                     java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
level - The debugging level of this message.
message - The debugging message to print.

printMsg

public void printMsg(java.lang.String message)
Description copied from interface: DebugOutput

Print out the debugging message, no questions asked.

Specified by:
printMsg in interface DebugOutput
Overrides:
printMsg in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Parameters:
message - The debugging message to print.

getWriter

public java.io.Writer getWriter()
Description copied from interface: DebugOutput

Returns a Writer for this output interface if one is available.

Specified by:
getWriter in interface DebugOutput
Overrides:
getWriter in class DebugOutputBase
Following copied from interface: idebug.DebugOutput
Returns:
a Writer for this output interface if one is available.
See Also:
Writer

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

IDebug
© 1997-2001 Joseph Kiniry
© 2000-2001 KindSoftware
© 1997-1999 Caltech
All Rights Reserved