public class DeleteOnCloseFileInputStream
extends java.io.FileInputStream
| Constructor and Description |
|---|
DeleteOnCloseFileInputStream(java.io.File file) |
DeleteOnCloseFileInputStream(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delete the file when the InputStream is closed
|
java.io.File |
getFile()
Allow access to the underlying file - careful!
|
public DeleteOnCloseFileInputStream(java.lang.String name)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic DeleteOnCloseFileInputStream(java.io.File file)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic java.io.File getFile()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FileInputStreamjava.io.IOExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.