Package com.simplicite.util.tools
Class FileTool.DeleteOnCloseInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FileInputStream
-
- com.simplicite.util.tools.FileTool.DeleteOnCloseInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- FileTool
public static class FileTool.DeleteOnCloseInputStream extends java.io.FileInputStream
Custom FileInputFile with auto-deletion on close
-
-
Constructor Summary
Constructors Constructor Description DeleteOnCloseInputStream(java.io.File file)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close stream and delete file-
Methods inherited from class java.io.FileInputStream
available, getChannel, getFD, read, read, read, skip
-
-