Package de.mhus.lib.core.lang
Class TempFile
- java.lang.Object
-
- java.io.File
-
- de.mhus.lib.core.lang.TempFile
-
- All Implemented Interfaces:
Serializable,Comparable<File>
public class TempFile extends File
The file will be deleted if the reference of the object is lost and the gc remove the object from the vm.- Author:
- mikehummel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilecreateTempFile(String prefix, String suffix)protected voidfinalize()-
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
createTempFile
public static File createTempFile(String prefix, String suffix) throws IOException
- Throws:
IOException
-
-