org.apache.commons.io.output
public class NullOutputStream extends OutputStream
This output stream has no destination (file/socket etc.) and all bytes written to it are ignored and lost.
Version: $Id: NullOutputStream.java 610010 2008-01-08 14:50:59Z niallp $
Field Summary | |
---|---|
static NullOutputStream | NULL_OUTPUT_STREAM
A singleton. |
Method Summary | |
---|---|
void | write(byte[] b, int off, int len)
Does nothing - output to /dev/null . |
void | write(int b)
Does nothing - output to /dev/null . |
void | write(byte[] b)
Does nothing - output to /dev/null . |
/dev/null
.Parameters: b The bytes to write off The start offset len The number of bytes to write
/dev/null
.Parameters: b The byte to write
/dev/null
.Parameters: b The bytes to write
Throws: IOException never