FileCache Class

com.bea.content.loader.bulk
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

Constructor Summary

FileCache()

 

Method Summary

public static File
getFile(String path)
Get the file object for the given path.
public static File
getFile(File dir, String path)
Get the file object for the given directory and path.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

FileCache

public FileCache()
 

Method Detail

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.