|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.ac.tuwien.infosys.rnue.helpers.search.FileSystemHelperImpl
The FileSystemHelperImpl class 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.
Constructor Summary | |
FileSystemHelperImpl(java.lang.String initialBase)
Constructs a FileSystemHelperImpl object with a given initialBase . |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileSystemHelperImpl(java.lang.String initialBase) throws ShareMeException
initialBase
.
initialBase
- java.lang.String representing the path to
the directory that contains the files to be shared (the
so-called 'file base').
ShareMeException
- If the path does not point to an
existing directory.Method Detail |
public void setSearchPathBase(java.lang.String path) throws ShareMeException
setSearchPathBase
in interface IFileSystemHelper
path
- path to the file base on the locale filesystem
ShareMeException
- If the path does not point to an
existing directory.public IFile[] searchFor(java.lang.String keyword) throws ShareMeException
searchFor
in interface IFileSystemHelper
keyword
- term to search for in the locale file base.
FileImpl
files
matching the keyword.
ShareMeException
- If some error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |