Class ClosedOutputStream

java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.ClosedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class ClosedOutputStream extends OutputStream
Throws an IOException on all attempts to write to the stream.

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:
1.4