FileDocCategorySizeDatePackage
NullOutputStream.javaAPI DocAndroid 1.5 API2116Wed May 06 22:42:46 BST 2009org.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.

author
Jeremias Maerki
version
$Id: NullOutputStream.java 610010 2008-01-08 14:50:59Z niallp $

Fields Summary
public static final NullOutputStream
NULL_OUTPUT_STREAM
A singleton.
Constructors Summary
Methods Summary
public voidwrite(byte[] b, int off, int len)
Does nothing - output to /dev/null.

param
b The bytes to write
param
off The start offset
param
len The number of bytes to write


                                  
            
        //to /dev/null
    
public voidwrite(int b)
Does nothing - output to /dev/null.

param
b The byte to write

        //to /dev/null
    
public voidwrite(byte[] b)
Does nothing - output to /dev/null.

param
b The bytes to write
throws
IOException never

        //to /dev/null