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.
Modifier and Type | Method and Description |
---|---|
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 . |
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 foundURL lookupFileLocation(String filename, ClassLoader cl)
Collection<URL> lookupFileLocations(String filename, ClassLoader cl) throws IOException
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.