Class UnclosableOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class UnclosableOutputStream
    extends OutputStream
    A delegating output stream that throws an exception when closed. This is mainly used for testing purposes.