? NullWriter
java.lang.Object
java.io.Writer
org.apache.commons.io.output.NullWriter
- ????????:
Closeable
,Flushable
,Appendable
,AutoCloseable
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.
-
????
?? -
?????
??? -
????
??????????append
(char c) Does nothing - output to/dev/null
.append
(CharSequence csq) Does nothing - output to/dev/null
.append
(CharSequence csq, int start, int end) Does nothing - output to/dev/null
.void
close()
void
flush()
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
.void
Does nothing - output to/dev/null
.void
Does nothing - output to/dev/null
.??????? java.io.Writer
nullWriter
-
??????
-
NULL_WRITER
A singleton.
-
-
???????
-
NullWriter
public NullWriter()Constructs a new NullWriter.
-
-
??????
-
append
Does nothing - output to/dev/null
.- ???:
append
????Appendable
- ??:
append
???Writer
- ??:
c
- The character to write- ??:
- this writer
- ???????:
- 2.0
-
append
Does nothing - output to/dev/null
.- ???:
append
????Appendable
- ??:
append
???Writer
- ??:
csq
- The character sequence to writestart
- The index of the first character to writeend
- The index of the first character to write (exclusive)- ??:
- this writer
- ???????:
- 2.0
-
append
Does nothing - output to/dev/null
.- ???:
append
????Appendable
- ??:
append
???Writer
- ??:
csq
- The character sequence to write- ??:
- this writer
- ???????:
- 2.0
-
write
Does nothing - output to/dev/null
. -
write
Does nothing - output to/dev/null
. -
write
Does nothing - output to/dev/null
. -
write
Does nothing - output to/dev/null
. -
write
Does nothing - output to/dev/null
. -
flush
-
close
-