Class NonClosingInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class NonClosingInputStream
    extends InputStream
    A delegating input stream that does nothing when being closed. This is mainly useful for scenarios where we want to close wrappers (to free their resources) but do not want to close the source stream.