public interface FileLookup
Modifier and Type | Method and Description |
---|---|
InputStream |
lookupFile(String filename,
ClassLoader cl)
Looks up the file, see :
FileLookupFactory.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 :
FileLookupFactory.DefaultFileLookup . |
InputStream |
lookupFileStrict(URI uri,
ClassLoader cl)
Looks up the file, see :
FileLookupFactory.DefaultFileLookup . |
InputStream lookupFile(String filename, ClassLoader cl)
FileLookupFactory.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
FileLookupFactory.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 foundInputStream lookupFileStrict(URI uri, ClassLoader cl) throws FileNotFoundException
FileLookupFactory.DefaultFileLookup
.uri
- An absolute, hierarchical URI with a scheme equal to
"file" that represents the file to lookupFileNotFoundException
- if file cannot be foundURL lookupFileLocation(String filename, ClassLoader cl)
Collection<URL> lookupFileLocations(String filename, ClassLoader cl) throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.