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.FileNotFoundException
public DeleteOnCloseFileInputStream(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.File getFile()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FileInputStream
java.io.IOException
Copyright © 2020 Regents of the University of California. All Rights Reserved.