com.beasys.commerce.axiom.document.loader
Class FileCache
java.lang.Object
|
+--com.beasys.commerce.axiom.document.loader.FileCache
- public class FileCache
- extends java.lang.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.
Method Summary |
static java.io.File |
getFile(java.io.File dir,
java.lang.String path)
Get the file object for the given directory and path. |
static java.io.File |
getFile(java.lang.String path)
Get the file object for the given path. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FileCache
public FileCache()
getFile
public static java.io.File getFile(java.lang.String path)
- Get the file object for the given path.
getFile
public static java.io.File getFile(java.io.File dir,
java.lang.String path)
- Get the file object for the given directory and path.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved