de.uniba.wiai.lspi.util.console
Class DummyOutputStream
java.lang.Object
java.io.OutputStream
de.uniba.wiai.lspi.util.console.DummyOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class DummyOutputStream
- extends java.io.OutputStream
Dummy output stream that writes nothing. Can be used to substitute
System.out with, so that no calls to e.g.
System.out.println() are displayed in the console window. The
calls result in nothing being printed.
- Version:
- 1.0.5
- Author:
- sven
|
Method Summary |
void |
write(int b)
Overwritten from OutputStream. |
| Methods inherited from class java.io.OutputStream |
close, flush, write, write |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyOutputStream
public DummyOutputStream()
- Creates a new instance of DummyOutputStream
write
public void write(int b)
throws java.io.IOException
- Overwritten from
OutputStream. This method does nothing.
The byte that should be written is thrown away.
- Specified by:
write in class java.io.OutputStream
- Parameters:
b - This byte is thrown away. Nothing is really written.
- Throws:
java.io.IOException - Does not occur as nothing is really written.