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
-
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, skip
-
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
-