public class EmptyOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
static EmptyOutputStream |
INSTANCE
单例
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b)
什么也不做,写出到
/dev/null. |
void |
write(byte[] b,
int off,
int len)
什么也不做,写出到
/dev/null. |
void |
write(int b)
什么也不做,写出到
/dev/null. |
close, flushpublic static final EmptyOutputStream INSTANCE
public void write(byte[] b,
int off,
int len)
/dev/null.write in class OutputStreamb - 写出的数据off - 开始位置len - 长度public void write(int b)
/dev/null.write in class OutputStreamb - 写出的数据public void write(byte[] b)
/dev/null.write in class OutputStreamb - 写出的数据Copyright © 2025. All rights reserved.