org.apache.commons.vfs
Interface FilesCache

All Known Implementing Classes:
AbstractFilesCache

public interface FilesCache

The fileCache interface

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Mario Ivankovits

Method Summary
 void clear(FileSystem filesystem)
          purge the entries corresponding to the filesystem
 void close()
          purge the whole cache
 FileObject getFile(FileSystem filesystem, FileName name)
          retrieve a file from the cache by its name
 void putFile(FileObject file)
          add a fileobject to the cache
 void removeFile(FileSystem filesystem, FileName name)
          removes a file from cache
 

Method Detail

putFile

public void putFile(FileObject file)
add a fileobject to the cache

Parameters:
file - the file

getFile

public 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

public void clear(FileSystem filesystem)
purge the entries corresponding to the filesystem


close

public void close()
purge the whole cache


removeFile

public void removeFile(FileSystem filesystem,
                       FileName name)
removes a file from cache

Parameters:
filesystem - filesystem
name - filename


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.