|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileLookup
Holds the logic of looking up a file, in the following sequence:
Use FileLookupFactory to obtain an instance of FileLookup. This will result in an extended version
of FileLookup being used if in an OSGI environment.
| Method Summary | |
|---|---|
InputStream |
lookupFile(String filename,
ClassLoader cl)
Looks up the file, see : DefaultFileLookup. |
URL |
lookupFileLocation(String filename,
ClassLoader cl)
|
Collection<URL> |
lookupFileLocations(String filename,
ClassLoader cl)
|
InputStream |
lookupFileStrict(String filename,
ClassLoader cl)
Looks up the file, see : DefaultFileLookup. |
| Method Detail |
|---|
InputStream lookupFile(String filename,
ClassLoader cl)
DefaultFileLookup.
filename - might be the name of the file (too look it up in the class path) or an url to a file.
InputStream lookupFileStrict(String filename,
ClassLoader cl)
throws FileNotFoundException
DefaultFileLookup.
filename - might be the name of the file (too look it up in the class path) or an url to a file.
FileNotFoundException - if file cannot be found
URL lookupFileLocation(String filename,
ClassLoader cl)
Collection<URL> lookupFileLocations(String filename,
ClassLoader cl)
throws IOException
IOException
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||