public class NullOutputStream extends OutputStream
| Constructor and Description |
|---|
NullOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b)
什么也不做,写出到
/dev/null. |
void |
write(byte[] b,
int off,
int len)
什么也不做,写出到
/dev/null. |
void |
write(int b)
什么也不做,写出到
/dev/null. |
flushpublic void write(int b)
throws IOException
/dev/null.write in class OutputStreamb - 写出的数据IOExceptionpublic void write(byte[] b)
throws IOException
/dev/null.write in class OutputStreamb - 写出的数据IOException - 不抛出public void write(byte[] b,
int off,
int len)
throws IOException
/dev/null.write in class OutputStreamb - 写出的数据off - 开始位置len - 长度IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamCopyright © 2020. All rights reserved.