Package org.apache.commons.vfs
Interface FilesCache
- All Known Implementing Classes:
AbstractFilesCache,DefaultFilesCache,LRUFilesCache,NullFilesCache,SoftRefFilesCache,WeakRefFilesCache
public interface FilesCache
The fileCache interface
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear(FileSystem filesystem) purge the entries corresponding to the filesystemvoidclose()purge the whole cachegetFile(FileSystem filesystem, FileName name) retrieve a file from the cache by its namevoidputFile(FileObject file) add a fileobject to the cachevoidremoveFile(FileSystem filesystem, FileName name) removes a file from cache
-
Method Details
-
putFile
add a fileobject to the cache- Parameters:
file- the file
-
getFile
retrieve a file from the cache by its name- Parameters:
name- the name- Returns:
- the fileobject or null if file is not cached
-
clear
purge the entries corresponding to the filesystem -
close
void close()purge the whole cache -
removeFile
removes a file from cache- Parameters:
filesystem- filesystemname- filename
-