Class UnclosableInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class UnclosableInputStream
    extends InputStream
    A delegating input stream that throws an exception when closed. This is mainly used for testing purposes.