FileCache Class
- public class FileCache
extends Object
A cache for file objects that uses a WeakHashMap.
This can be used by applications that will generate a lot of File object
to avoid memory problems.
-
Hierarchy
-
Object
FileCache
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileCache
public FileCache()
getFile(String) Method
public static File
getFile(String
path)
Get the file object for the given path.
getFile(File, String) Method
public static File
getFile(File
dir,
String
path)
Get the file object for the given directory and path.