public class ClosedOutputStream extends OutputStream
Typically uses of this class include testing for corner cases in methods
that accept an output stream and acting as a sentinel value instead of
a null output stream.
| 限定符和类型 | 字段和说明 |
|---|---|
static ClosedOutputStream |
CLOSED_OUTPUT_STREAM
A singleton.
|
| 构造器和说明 |
|---|
ClosedOutputStream() |
public static final ClosedOutputStream CLOSED_OUTPUT_STREAM
public void write(int b)
throws IOException
IOException to indicate that the stream is closed.write 在类中 OutputStreamb - ignoredIOException - always thrown