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 FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ProxyInputStream. -
Method Summary
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
afterRead, available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip, unwrapMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
InputStreamWithCloseIgnore
Constructs a new ProxyInputStream.- Parameters:
proxy- the InputStream to delegate to
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-