java.lang.Object
com.aoapps.hodgepodge.io.TempFile
Deprecated.
Holds a reference to a temp file. Automatically deletes the file on JVM shutdown
or when
delete()
is explicitly called.- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TempFile
Deprecated.- Throws:
IOException
-
TempFile
Deprecated.- Throws:
IOException
-
TempFile
Deprecated.Creates the temp directory if missing.- Throws:
IOException
-
-
Method Details
-
toString
Deprecated. -
delete
Deprecated.Deletes the underlying temp file immediately. Subsequent calls will not delete the temp file, even if another file has the same path. If already deleted, has no effect.- Throws:
IOException
-
getFile
Deprecated.Gets the temp file.- Throws:
IllegalStateException
- if already deleted
-
TempFileContext
asFile.deleteOnExit()
is prone to memory leaks in long-running applications.