public class NullOutputStream
extends java.io.OutputStream
This output stream has no destination and all bytes written to it are ignored.
| Modifier and Type | Field and Description |
|---|---|
static NullOutputStream |
INSTANCE
The singleton instance.
|
static NullOutputStream |
NULL_OUTPUT_STREAM
Deprecated.
Use
INSTANCE. |
| Constructor and Description |
|---|
NullOutputStream()
Deprecated.
Use
INSTANCE. |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b)
Does nothing.
|
void |
write(byte[] b,
int off,
int len)
Does nothing.
|
void |
write(int b)
Does nothing.
|
public static final NullOutputStream INSTANCE
@Deprecated public static final NullOutputStream NULL_OUTPUT_STREAM
INSTANCE.public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamb - The This method ignores this parameter.java.io.IOException - This method never throws any exceptions.public void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreamb - This method ignores this parameter.off - This method ignores this parameter.len - This method ignores this parameter.public void write(int b)
write in class java.io.OutputStreamb - This method ignores this parameter.Copyright © 2010 - 2025 Adobe. All Rights Reserved