public class DeletingFileInputStream extends FileInputStream
FileInputStream that will optionally delete the file when the input stream is closed.| Constructor and Description |
|---|
DeletingFileInputStream(File file,
boolean deleteOnClose) |
DeletingFileInputStream(String name,
boolean deleteOnClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
available, finalize, getChannel, getFD, read, read, read, skipmark, markSupported, resetpublic DeletingFileInputStream(String name, boolean deleteOnClose) throws FileNotFoundException
FileNotFoundExceptionpublic DeletingFileInputStream(File file, boolean deleteOnClose) throws FileNotFoundException
FileNotFoundExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FileInputStreamIOExceptionCopyright © 2014 Calrissian. All rights reserved.