Class InputStreamWithCloseIgnore

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class InputStreamWithCloseIgnore
    extends org.apache.commons.io.input.ProxyInputStream
    A wrapper whose close() method is a noop. In contrast to CloseShieldInputStream this class' read method will not indicate EOF after close.
    • Constructor Detail

      • InputStreamWithCloseIgnore

        public InputStreamWithCloseIgnore​(InputStream proxy)
        Constructs a new ProxyInputStream.
        Parameters:
        proxy - the InputStream to delegate to