public class TemporaryFile
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
TemporaryFile(java.io.File file)
Creates a new wrapper around the given file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.io.File |
getFile()
Obtains the file or directory this temporary file refers to.
|
public TemporaryFile(java.io.File file)
file will be deleted
(recursively, if it is a directory) on close.public java.io.File getFile()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException