|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
edu.emory.mathcs.util.io.NullOutputStream
Output stream that ignores all data written. Similar to /dev/null. Typical
application is when data sink must be specified even though the application
does not care for the data and wants it discarded.
For instance, assigning this to System.setOut(java.io.PrintStream)
suppresses standard
output.
Constructor Summary | |
NullOutputStream()
Creates a new NullOutputStream. |
Method Summary | |
void |
close()
Does nothing. |
void |
flush()
Does nothing. |
void |
write(byte[] buf,
int off,
int len)
Does nothing. |
void |
write(int b)
Does nothing. |
Methods inherited from class java.io.OutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullOutputStream()
Method Detail |
public void write(byte[] buf, int off, int len)
public void write(int b)
public void flush()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |