org.apache.commons.io.output
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.
Since: Commons IO 1.4
Version: $Id: ClosedOutputStream.java 601751 2007-12-06 14:55:45Z niallp $
Field Summary | |
---|---|
static ClosedOutputStream | CLOSED_OUTPUT_STREAM
A singleton. |
Method Summary | |
---|---|
void | write(int b)
Throws an IOException to indicate that the stream is closed.
|
Parameters: b ignored
Throws: IOException always thrown