edu.rice.cs.plt.io
Class VoidOutputStream
java.lang.Object
java.io.OutputStream
edu.rice.cs.plt.io.DirectOutputStream
edu.rice.cs.plt.io.VoidOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class VoidOutputStream
- extends DirectOutputStream
A stream that discards all data written to it.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final VoidOutputStream INSTANCE
VoidOutputStream
protected VoidOutputStream()
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
flush
public void flush()
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
write
public void write(byte[] bbuf)
- Description copied from class:
DirectOutputStream
- Delegate to the more general
DirectOutputStream.write(byte[], int, int) method
- Overrides:
write in class DirectOutputStream
write
public void write(byte[] bbuf,
int offset,
int len)
- Description copied from class:
DirectOutputStream
- Subclasses are, at a minimum, required to implement this method.
- Specified by:
write in class DirectOutputStream
write
public void write(int b)
- Description copied from class:
DirectOutputStream
- Delegate to the more general
DirectOutputStream.write(byte[], int, int) method
- Overrides:
write in class DirectOutputStream