|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.util.FileFinder
public class FileFinder
This class represents an object that manages a set of path where to find files.
Constructor Summary | |
---|---|
FileFinder()
Creates a new file finder |
Method Summary | |
---|---|
void |
addPath(String path)
Adds a search path. |
File |
findFile(String name)
Searches and returns a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileFinder()
Method Detail |
---|
public void addPath(String path)
path
- the path to addpublic File findFile(String name) throws IOException
name
- the base name of the file to find
IOException
- if no file was found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |