org.apache.commons.io.output
Class NullWriter
Writerorg.apache.commons.io.output.NullWriter
public class NullWriter
extends Writer
This
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.
$Id: NullWriter.java 610010 2008-01-08 14:50:59Z niallp $
void | close()
|
void | flush()
|
void | write(String str)- Does nothing - output to
/dev/null.
|
void | write(String str, int st, int end)- Does nothing - output to
/dev/null.
|
void | write(char[] chr)- Does nothing - output to
/dev/null.
|
void | write(char[] chr, int st, int end)- Does nothing - output to
/dev/null.
|
void | write(int idx)- Does nothing - output to
/dev/null.
|
NULL_WRITER
public static final NullWriter NULL_WRITER
A singleton.
NullWriter
public NullWriter()
Constructs a new NullWriter.
write
public void write(String str)
Does nothing - output to /dev/null.
str - The string to write
write
public void write(String str,
int st,
int end) Does nothing - output to /dev/null.
str - The string to writest - The start offsetend - The number of characters to write
write
public void write(char[] chr)
Does nothing - output to /dev/null.
chr - The characters to write
write
public void write(char[] chr,
int st,
int end) Does nothing - output to /dev/null.
chr - The characters to writest - The start offsetend - The number of characters to write
write
public void write(int idx)
Does nothing - output to /dev/null.
idx - The character to write
Copyright (c) 2002-2010 Apache Software Foundation