public class NullOutputStream
extends java.io.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) |
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamCopyright © 2022. All rights reserved.