public class NullOutputStream extends OutputStream
| Constructor and Description | 
|---|
NullOutputStream()
Default constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
write(byte[] bytes)
Writes to the stream (in this case, does nothing). 
 | 
void | 
write(byte[] bytes,
     int off,
     int len)
Writes to the stream (in this case, does nothing). 
 | 
void | 
write(int i)
Writes to the stream (in this case, does nothing). 
 | 
close, flushpublic void write(int i)
           throws IOException
write in class OutputStreami - the value.IOException - if there is an I/O problem.public void write(byte[] bytes)
           throws IOException
write in class OutputStreambytes - the bytes.IOException - if there is an I/O problem.public void write(byte[] bytes,
         int off,
         int len)
           throws IOException
write in class OutputStreambytes - the bytes.off - the start offset in the data.len - the number of bytes to write.IOException - if there is an I/O problem.