Package org.apache.commons.vfs
Interface FilesCache
-
- All Known Implementing Classes:
AbstractFilesCache,DefaultFilesCache,LRUFilesCache,NullFilesCache,SoftRefFilesCache,WeakRefFilesCache
public interface FilesCacheThe fileCache interface- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Mario Ivankovits
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear(FileSystem filesystem)purge the entries corresponding to the filesystemvoidclose()purge the whole cacheFileObjectgetFile(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 Detail
-
putFile
void putFile(FileObject file)
add a fileobject to the cache- Parameters:
file- the file
-
getFile
FileObject getFile(FileSystem filesystem, FileName name)
retrieve a file from the cache by its name- Parameters:
name- the name- Returns:
- the fileobject or null if file is not cached
-
clear
void clear(FileSystem filesystem)
purge the entries corresponding to the filesystem
-
close
void close()
purge the whole cache
-
removeFile
void removeFile(FileSystem filesystem, FileName name)
removes a file from cache- Parameters:
filesystem- filesystemname- filename
-
-