org.jppf.io
Class TemporaryFileHolder
java.lang.Object
org.jppf.io.TemporaryFileHolder
public class TemporaryFileHolder
- extends Object
Instances of this class hold a temporary File and ensure the file
is deleted when they are garbage collected.
- Author:
- Laurent Cohen
|
Method Summary |
protected void |
finalize()
This method deletes the underlying file. |
File |
getFile()
Get the underlying file. |
TemporaryFileHolder
public TemporaryFileHolder(File file)
- Initialize this file holder with the specified file.
- Parameters:
file - the temprary file to handle.
finalize
protected void finalize()
throws Throwable
- This method deletes the underlying file.
- Overrides:
finalize in class Object
- Throws:
Throwable - if an error occurs.- See Also:
Object.finalize()
getFile
public File getFile()
- Get the underlying file.
- Returns:
- a
File instance.
Copyright © 2005-2010 JPPF Team.