Package com.logicaldoc.util.io
Class AutoDeleteZipInputStream
java.lang.Object
java.io.InputStream
com.logicaldoc.util.io.ZipInputStream
com.logicaldoc.util.io.AutoDeleteZipInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Same as ZipInputStream but deletes the file after closing.
- Since:
- 6.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
ConstructorDescriptionAutoDeleteZipInputStream
(net.lingala.zip4j.io.inputstream.ZipInputStream wrapped, File zipFile) -
Method Summary
Methods inherited from class com.logicaldoc.util.io.ZipInputStream
available, equals, hashCode, mark, markSupported, read, read, read, reset, skip, toString
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
AutoDeleteZipInputStream
public AutoDeleteZipInputStream(net.lingala.zip4j.io.inputstream.ZipInputStream wrapped, File zipFile)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classZipInputStream
- Throws:
IOException
-