Package org.infinispan.commons.util
Interface FileLookup
- All Known Implementing Classes:
AbstractFileLookup
,FileLookupFactory.DefaultFileLookup
public interface FileLookup
-
Method Summary
Modifier and TypeMethodDescriptionlookupFile
(String filename, ClassLoader cl) Looks up the file, see :FileLookupFactory.DefaultFileLookup
.lookupFileLocation
(String filename, ClassLoader cl) lookupFileLocations
(String filename, ClassLoader cl) lookupFileStrict
(String filename, ClassLoader cl) Looks up the file, see :FileLookupFactory.DefaultFileLookup
.lookupFileStrict
(URI uri, ClassLoader cl) Looks up the file, see :FileLookupFactory.DefaultFileLookup
.
-
Method Details
-
lookupFile
Looks up the file, see :FileLookupFactory.DefaultFileLookup
.- Parameters:
filename
- might be the name of the file (too look it up in the class path) or an url to a file.- Returns:
- an input stream to the file or null if nothing found through all lookup steps.
-
lookupFileStrict
Looks up the file, see :FileLookupFactory.DefaultFileLookup
.- Parameters:
filename
- might be the name of the file (too look it up in the class path) or an url to a file.- Returns:
- an input stream to the file or null if nothing found through all lookup steps.
- Throws:
FileNotFoundException
- if file cannot be found
-
lookupFileStrict
Looks up the file, see :FileLookupFactory.DefaultFileLookup
.- Parameters:
uri
- An absolute, hierarchical URI with a scheme equal to "file" that represents the file to lookup- Returns:
- an input stream to the file or null if nothing found through all lookup steps.
- Throws:
FileNotFoundException
- if file cannot be found
-
lookupFileLocation
-
lookupFileLocations
- Throws:
IOException
-