com.drew.lang
Class NullOutputStream
java.lang.Object
java.io.OutputStream
com.drew.lang.NullOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class NullOutputStream
- extends OutputStream
An implementation of OutputSteam that ignores write requests by doing nothing. This class may be useful in tests.
Method Summary |
void |
write(int b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullOutputStream
public NullOutputStream()
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException