|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.util.FileSearch
This class searches for a given file name in a set of directories
Constructor Summary | |
protected |
FileSearch()
Creates a new instance of FileSearch |
Method Summary | |
static String[] |
getSearchPath()
Returns the array of directory names to search in |
static String |
getSearchPathAsString()
Returns the current set of directories as a String. |
static String |
search(String filename)
Searches for a given file in a pre-defined set of directories. |
static void |
setSearchPath(String[] path)
Set the set of directories to search in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FileSearch()
Method Detail |
public static void setSearchPath(String[] path)
path
- An array of directory names.public static String[] getSearchPath()
public static String getSearchPathAsString()
public static String search(String filename)
filename
- The name of the file to search for
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |