public class NullOutputStream extends OutputStream
OutputStream which discards all data written to it.
For Java 11 and beyond, use OutputStream.nullOutputStream().| Constructor and Description |
|---|
NullOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, writepublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamCopyright © 2022. All rights reserved.