Package org.docx4j.org.apache.poi.util
Class CloseIgnoringInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.docx4j.org.apache.poi.util.CloseIgnoringInputStream
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class CloseIgnoringInputStream
extends java.io.FilterInputStream
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 Constructor Description CloseIgnoringInputStream(java.io.InputStream in) -
Method Summary
Modifier and Type Method Description voidclose()Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CloseIgnoringInputStream
public CloseIgnoringInputStream(java.io.InputStream in)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterInputStream
-