|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.util.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(java.lang.String path)
Adds a search path. |
java.io.File |
findFile(java.lang.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(java.lang.String path)
path
- the path to addpublic java.io.File findFile(java.lang.String name) throws java.io.IOException
name
- the base name of the file to find
java.io.IOException
- if no file was found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |