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
public class AutoDeleteZipInputStream extends ZipInputStream
Same as ZipInputStream but deletes the file after closing.- Since:
- 6.2
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description AutoDeleteZipInputStream(net.lingala.zip4j.io.inputstream.ZipInputStream wrapped, File zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
close(boolean arg0)
-
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, transferTo
-
-
-
-
Constructor Detail
-
AutoDeleteZipInputStream
public AutoDeleteZipInputStream(net.lingala.zip4j.io.inputstream.ZipInputStream wrapped, File zipFile)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classZipInputStream
- Throws:
IOException
-
close
public void close(boolean arg0) throws IOException
- Throws:
IOException
-
-