? NullOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.NullOutputStream
- ????????:
Closeable
,Flushable
,AutoCloseable
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.
-
????
?? -
?????
??? -
????
??????? java.io.OutputStream
close, flush, nullOutputStream
-
??????
-
NULL_OUTPUT_STREAM
The singleton.
-
-
???????
-
NullOutputStream
????UseNULL_OUTPUT_STREAM
.Deprecated in favor ofNULL_OUTPUT_STREAM
. TODO: Will be private in 3.0.
-
-
??????
-
write
Does nothing - output to/dev/null
.- ??:
write
???OutputStream
- ??:
b
- The bytes to writeoff
- The start offsetlen
- The number of bytes to write
-
write
Does nothing - output to/dev/null
.- ???:
write
???OutputStream
- ??:
b
- The byte to write
-
write
Does nothing - output to/dev/null
.- ??:
write
???OutputStream
- ??:
b
- The bytes to write- ??:
IOException
- never
-
NULL_OUTPUT_STREAM
.