Class ClosedWriter

java.lang.Object
java.io.Writer
org.apache.commons.io.output.ClosedWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class ClosedWriter extends Writer
Throws an IOException on all attempts to write with close() implemented as a noop.

Typically uses of this class include testing for corner cases in methods that accept a writer and acting as a sentinel value instead of a null writer.

Since:
2.7