java.lang.Object
com.aoapps.hodgepodge.io.TempFileList
Deprecated.
Manages a set of temporary files. When a context is completed, all
temporary files created within that context may be deleted by calling delete
on its list.
For example, a context might be the lifecycle of serving one HTTP request. Once the request has been completed, any temporary files created should be cleaned-up immediately instead of waiting an indeterminate amount of time for
- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
ConstructorDescriptionTempFileList
(String prefix) Deprecated.TempFileList
(String prefix, String suffix) Deprecated.TempFileList
(String prefix, String suffix, File directory) Deprecated. -
Method Summary
-
Constructor Details
-
TempFileList
Deprecated. -
TempFileList
Deprecated. -
TempFileList
Deprecated.
-
-
Method Details
-
toString
Deprecated. -
createTempFile
Deprecated.Creates a new temp file while adding it to the list of files that will be explicitly deleted when this list is deleted.- Throws:
IOException
-
delete
Deprecated.Deletes all of the underlying temp files immediately.This list may still be used for additional temp files.
- Throws:
IOException
- See Also:
-
TempFileContext
asFile.deleteOnExit()
is prone to memory leaks in long-running applications.