Package org.apache.poi.util
Class CloseIgnoringInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.poi.util.CloseIgnoringInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A wrapper around an
InputStream
, which
ignores close requests made to it.
Useful with POIFSFileSystem
, where you want
to control the close yourself.-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CloseIgnoringInputStream
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
-