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

idebug
Class WriterOutput

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

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

The primary class used to send debugging messages to a PrintWriter output channel.

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
WriterOutput(Debug d)
           Constructor for WriterOutput.
WriterOutput(Debug d, java.io.PrintWriter p)
           Constructor for WriterOutput.
 
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.
 void setPrintWriter(java.io.PrintWriter p)
           Set a new PrintWriter.
 
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

WriterOutput

public WriterOutput(Debug d)

Constructor for WriterOutput.

Parameters:
d - the Debug object associated with this WriterOutput.

WriterOutput

public WriterOutput(Debug d,
                    java.io.PrintWriter p)

Constructor for WriterOutput.

Parameters:
debug - the Debug class associated with this WriterOutput.
printWriter - the new PrintWriter for this WriterOutput.
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

setPrintWriter

public void setPrintWriter(java.io.PrintWriter p)

Set a new PrintWriter.

Parameters:
p - the new PrintWriter.

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