org.apache.commons.io.output
public class NullWriter extends Writer
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 $
| Field Summary | |
|---|---|
| static NullWriter | NULL_WRITER
A singleton. |
| Constructor Summary | |
|---|---|
| NullWriter()
Constructs a new NullWriter. | |
| Method Summary | |
|---|---|
| void | close() |
| void | flush() |
| void | write(int idx)
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(String str)
Does nothing - output to /dev/null. |
| void | write(String str, int st, int end)
Does nothing - output to /dev/null. |
See Also: java.io.Writer#close()
See Also: java.io.Writer#flush()
/dev/null.Parameters: idx The character to write
/dev/null.Parameters: chr The characters to write
/dev/null.Parameters: chr The characters to write st The start offset end The number of characters to write
/dev/null.Parameters: str The string to write
/dev/null.Parameters: str The string to write st The start offset end The number of characters to write