com.bea.content.loader.bulk
Class FileCache

java.lang.Object
  extended by com.bea.content.loader.bulk.FileCache

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.


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

Constructor Detail

FileCache

public FileCache()
Method Detail

getFile

public static File getFile(String path)
Get the file object for the given path.


getFile

public static File getFile(File dir,
                           String path)
Get the file object for the given directory and path.


getFile

public static File getFile(String parentDir,
                           String filename)


Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.