xbn.output
Class OWEmpty

java.lang.Object
  |
  +--xbn.XBNObject
        |
        +--xbn.output.OWriter
              |
              +--xbn.output.OWEmpty

public final class OWEmpty
extends OWriter

An OWriter where output is suppressed. The write and writeNoln functions (the only functions in this class) have exactly zero lines of code in their bodies.

Source code:  OWEmpty.java.  Example code  See the example code for OWriter.


Fields inherited from class xbn.XBNObject
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP
 
Constructor Summary
OWEmpty()
          Create a DebugEmpty.
 
Method Summary
 boolean isActive()
          Does this OWEmpty actually write output somewhere?
 void newln()
          Does nothing.
 void write(String s_message)
          Does nothing.
 void writeNoln(String s_message)
          Does nothing.
 
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

OWEmpty

public OWEmpty()

Create a DebugEmpty.

Equal to OWriter(null)

Method Detail

write

public void write(String s_message)

Does nothing. Has no lines of code.

Overrides:
write in class OWriter
Parameters:
s_message - Parameter is ignored.

writeNoln

public void writeNoln(String s_message)

Does nothing. Has no lines of code.

Overrides:
writeNoln in class OWriter
Parameters:
s_message - Parameter is ignored.

newln

public void newln()

Does nothing. Has no lines of code.

Overrides:
newln in class OWriter

isActive

public boolean isActive()

Does this OWEmpty actually write output somewhere?

Overrides:
isActive in class OWriter
Returns:
false OWEmpty is never active.



Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.

 

http://sourceforge.net/projects/xbnjava

 

SourceForge.net Logo