org.apache.commons.io.output
Class NullOutputStream
OutputStreamorg.apache.commons.io.output.NullOutputStream
public class NullOutputStream
extends OutputStream
This OutputStream writes all data to the famous
/dev/null.
This output stream has no destination (file/socket etc.) and all
bytes written to it are ignored and lost.
$Id: NullOutputStream.java 610010 2008-01-08 14:50:59Z niallp $
void | write(byte[] b)- Does nothing - output to
/dev/null.
|
void | write(byte[] b, int off, int len)- Does nothing - output to
/dev/null.
|
void | write(int b)- Does nothing - output to
/dev/null.
|
NULL_OUTPUT_STREAM
public static final NullOutputStream NULL_OUTPUT_STREAM
A singleton.
write
public void write(byte[] b)
throws IOException Does nothing - output to /dev/null.
write
public void write(byte[] b,
int off,
int len) Does nothing - output to /dev/null.
b - The bytes to writeoff - The start offsetlen - The number of bytes to write
write
public void write(int b)
Does nothing - output to /dev/null.
Copyright (c) 2002-2010 Apache Software Foundation