com.drew.lang
Class NullOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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.


Constructor Summary
NullOutputStream()
           
 
Method Summary
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOutputStream

public NullOutputStream()
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException