public class NullOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
static NullOutputStream |
INSTANCE
Shared instance which is safe to use concurrently as the stream
doesn't hold any state at all.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b)
Doesn't do anything.
|
void |
write(byte[] b,
int off,
int len)
Doesn't do anything.
|
void |
write(int i)
Doesn't do anything.
|
public static NullOutputStream INSTANCE
public void write(byte[] b)
write in class java.io.OutputStreampublic void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void write(int i)
write in class java.io.OutputStream