at.ac.tuwien.infosys.rnue.interfaces
Interface IFileSystemHelper

All Known Implementing Classes:
FileSystemHelperImpl

public interface IFileSystemHelper

A class implementing the IFileSystemHelper interface provides the methods to define the file base on the locale filesystem and to search it. The file base is the directory that contains the files to be shared.


Method Summary
 IFile[] searchFor(java.lang.String keyword)
          Searches the locale file base for a given keyword.
 void setSearchPathBase(java.lang.String path)
          Method to set the path to the file base.
 

Method Detail

setSearchPathBase

public void setSearchPathBase(java.lang.String path)
                       throws ShareMeException
Method to set the path to the file base. The file base is the directory that contains the files to be shared.

Parameters:
path - path to the file base on the locale filesystem
Throws:
ShareMeException - If the path does not point to an existing directory.

searchFor

public IFile[] searchFor(java.lang.String keyword)
                  throws ShareMeException
Searches the locale file base for a given keyword.

Parameters:
keyword - term to search for in the locale file base.
Returns:
An array of FileImpl files matching the keyword.
Throws:
ShareMeException - If some error occurs.