Package net.sansa_stack.io.util
Class InputStreamWithCloseIgnore
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.ProxyInputStream
-
- net.sansa_stack.io.util.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.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description InputStreamWithCloseIgnore(InputStream proxy)
Constructs a new ProxyInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
InputStreamWithCloseIgnore
public InputStreamWithCloseIgnore(InputStream proxy)
Constructs a new ProxyInputStream.- Parameters:
proxy
- the InputStream to delegate to
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.commons.io.input.ProxyInputStream
- Throws:
IOException
-
-