public class NullOutputStream extends OutputStream
This output stream has no destination (file/socket etc.) and all bytes written to it are ignored and lost.
| 限定符和类型 | 字段和说明 |
|---|---|
static NullOutputStream |
NULL_OUTPUT_STREAM
A singleton.
|
| 构造器和说明 |
|---|
NullOutputStream() |
public static final NullOutputStream NULL_OUTPUT_STREAM
public void write(@Nullable byte[] b, int off, int len)
/dev/null.write 在类中 OutputStreamb - The bytes to writeoff - The start offsetlen - The number of bytes to writepublic void write(int b)
/dev/null.write 在类中 OutputStreamb - The byte to writepublic void write(byte[] b)
/dev/null.write 在类中 OutputStreamb - The bytes to writeCopyright © 2022. All rights reserved.