public class NullOutputStream extends OutputStream
OutputStream does not write any data. (All the methods in this object are empty.)
This can be used in combination with a MeasuredOutputStream to measure the length of something being written.
| Constructor and Description |
|---|
NullOutputStream()
|
public void close()
public void flush()
public void write(byte[] b,
int off,
int len)public void write(byte[] b)
public void write(int b)
throws IOException
write in class
OutputStream
IOException