FileDocCategorySizeDatePackage
NullWriter.javaAPI DocAndroid 1.5 API2769Wed May 06 22:42:46 BST 2009org.apache.commons.io.output

NullWriter

public class NullWriter extends Writer
This {@link Writer} writes all data to the famous /dev/null.

This Writer has no destination (file/socket etc.) and all characters written to it are ignored and lost.

version
$Id: NullWriter.java 610010 2008-01-08 14:50:59Z niallp $

Fields Summary
public static final NullWriter
NULL_WRITER
A singleton.
Constructors Summary
public NullWriter()
Constructs a new NullWriter.


             
      
    
Methods Summary
public voidclose()

see
java.io.Writer#close()

        //to /dev/null
    
public voidflush()

see
java.io.Writer#flush()

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

param
idx The character to write

        //to /dev/null
    
public voidwrite(char[] chr)
Does nothing - output to /dev/null.

param
chr The characters to write

        //to /dev/null
    
public voidwrite(char[] chr, int st, int end)
Does nothing - output to /dev/null.

param
chr The characters to write
param
st The start offset
param
end The number of characters to write

        //to /dev/null
    
public voidwrite(java.lang.String str)
Does nothing - output to /dev/null.

param
str The string to write

        //to /dev/null
    
public voidwrite(java.lang.String str, int st, int end)
Does nothing - output to /dev/null.

param
str The string to write
param
st The start offset
param
end The number of characters to write

        //to /dev/null