|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class implementing Debuggable has permanent, optional and configurable output.
Source code: Debuggable.java
//REQUIRED BY xbn.output.Outputter...START
private Outputter outPutter = new Outputter();
//REQUIRED BY xbn.output.Outputter...END
//REQUIRED BY xbn.output.Debuggable...START
public Outputter getOptrDbg() {
return outPutter;
}
public void setOptrDbg(Outputter o_utputter) {
if(o_utputter == null) {
throw new AssertException("ERROR in [YOUR CLASS].setOutputter: o_utputter is null.");
}
outPutter = o_utputter;
}
public void dbg(String s_message) {
getOptrDbg().write(s_message);
}
public void dbgnl(String s_message) {
getOptrDbg().writeNoln(s_message);
}
//REQUIRED BY xbn.output.Debuggable...END
Method Summary | |
void |
dbg(String s_message)
Output a line of text. |
void |
dbgnl(String s_message)
Output a line of text without an ending newline. |
Outputter |
getOptrDbg()
Get the Outputter object for direct manipulation. |
void |
setOptrDbg(Outputter out_putter)
Set the Outputter object. |
Method Detail |
public Outputter getOptrDbg()
Get the Outputter object for direct manipulation.
Set with setOutputter.
public void setOptrDbg(Outputter out_putter)
Set the Outputter object.
Get with getOutputter.
out_putter
- The Outputter object. May not be null.public void dbg(String s_message)
Output a line of text.
s_message
- The message to output.public void dbgnl(String s_message)
Output a line of text without an ending newline.
s_message
- The message to output.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava