|
IDebug © 1997-2001 Joseph Kiniry © 2000-2001 KindSoftware © 1997-1999 Caltech All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--idebug.DebugOutputBase
The abstract class from which all classes providing output methods
used to send debugging messages to various types of devices must
inherit. All final output methods use the printMsg as their
final "output destinations", thus only they need to be overridden.
ConsoleOutput,
ServletLogOutput,
WindowOutput,
WriterOutput| Field Summary | |
protected Debug |
debug
The Debug object associated with this output
object. |
| Constructor Summary | |
DebugOutputBase()
|
|
| Method Summary | |
abstract java.io.Writer |
getWriter()
Returns a Writer for this output interface if one is
available. |
boolean |
isValidCategory(java.lang.String category)
Tests to see if the current debug context is interested in a given category. |
boolean |
isValidLevel(int level)
Tests to see if the current debug context is interested in a given level. |
boolean |
print(int level,
java.lang.Object object)
Print out an object if the debugging context warrents. |
boolean |
print(int level,
java.lang.String message)
Print out a debugging message if the debugging context warrents. |
boolean |
print(java.lang.String category,
java.lang.Object object)
Print out an object if the debugging context warrents. |
boolean |
print(java.lang.String category,
java.lang.String message)
Print out a debugging message if the debugging context warrents. |
boolean |
println(int level,
java.lang.Object object)
Print out an object if the debugging context warrents. |
boolean |
println(int level,
java.lang.String message)
Print out a debugging message if the debugging context warrents. |
boolean |
println(java.lang.String category,
java.lang.Object object)
Print out an object if the debugging context warrents. |
boolean |
println(java.lang.String category,
java.lang.String message)
Print out a debugging message if the debugging context warrents. |
abstract void |
printMsg(int level,
java.lang.String message)
Print out the debugging message, no questions asked. |
abstract void |
printMsg(java.lang.String message)
Print out the debugging message, no questions asked. |
abstract void |
printMsg(java.lang.String category,
java.lang.String message)
Print out the debugging message, no questions asked. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Debug debug
The Debug object associated with this output
object.
| Constructor Detail |
public DebugOutputBase()
| Method Detail |
public abstract void printMsg(java.lang.String category,
java.lang.String message)
Print out the debugging message, no questions asked.
printMsg in interface DebugOutputcategory - is the category of this message.message - is the debugging message to print.
public abstract void printMsg(int level,
java.lang.String message)
Print out the debugging message, no questions asked.
printMsg in interface DebugOutputlevel - The debugging level of this message.message - The debugging message to print.public abstract void printMsg(java.lang.String message)
Print out the debugging message, no questions asked.
printMsg in interface DebugOutputmessage - The debugging message to print.
public final boolean print(int level,
java.lang.String message)
Print out a debugging message if the debugging context warrents.
print in interface DebugOutputlevel - The debugging level of this message.message - The debugging message to print.
public final boolean print(int level,
java.lang.Object object)
Print out an object if the debugging context warrents.
print in interface DebugOutputlevel - The debugging level of this message.object - The object to print.
public final boolean print(java.lang.String category,
java.lang.String message)
Print out a debugging message if the debugging context warrents.
print in interface DebugOutputcategory - The category of this message.message - The debugging message to print.
public final boolean print(java.lang.String category,
java.lang.Object object)
Print out an object if the debugging context warrents.
print in interface DebugOutputcategory - The category of this message.object - The object to print.
public final boolean println(java.lang.String category,
java.lang.Object object)
Print out an object if the debugging context warrents.
println in interface DebugOutputcategory - The category of this message.object - The object to print.
public final boolean println(java.lang.String category,
java.lang.String message)
Print out a debugging message if the debugging context warrents.
println in interface DebugOutputcategory - The category of this message.message - The debugging message to print.
public final boolean println(int level,
java.lang.Object object)
Print out an object if the debugging context warrents.
println in interface DebugOutputlevel - The debugging level of this message.object - The object to print.
public final boolean println(int level,
java.lang.String message)
Print out a debugging message if the debugging context warrents.
println in interface DebugOutputlevel - The debugging level of this message.message - The debugging message to print.public abstract java.io.Writer getWriter()
Returns a Writer for this output interface if one is
available.
getWriter in interface DebugOutputWriter for this output interface if one is
available.Writerpublic final boolean isValidCategory(java.lang.String category)
Tests to see if the current debug context is interested in a given category.
isValidCategory in interface DebugOutputcategory - the category to inspect.Contextpublic final boolean isValidLevel(int level)
Tests to see if the current debug context is interested in a given level.
isValidLevel in interface DebugOutputlevel - the level to inspect.Context
|
IDebug © 1997-2001 Joseph Kiniry © 2000-2001 KindSoftware © 1997-1999 Caltech All Rights Reserved |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||