|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.output.OWriter
Represents the "destination" where output should go. For example, you could send output to STDOUT, file or even nowhere. This class must be extended to do something.
Source code: OWriter.java
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
OWriter()
|
Method Summary | |
boolean |
isActive()
Does this OWriter actually write output somewhere? |
abstract void |
newln()
Output a newline only to the destination. |
abstract void |
write(String s_message)
Output a line of text to the destination, with a newline added to the end. |
abstract void |
writeNoln(String s_message)
Output a line of text to the destination. |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OWriter()
Method Detail |
public abstract void write(String s_message)
Output a line of text to the destination, with a newline added to the end.
s_message
- The message to output.public abstract void writeNoln(String s_message)
Output a line of text to the destination. No newline is added.
s_message
- The message to output.public abstract void newln()
public boolean isActive()
Does this OWriter actually write output somewhere?
If your OWriter does not write output at any time, you must override this function and return false, when applicable.
Note: OWriter.isActive
's version of isActive returns true.
|
|||||||||
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