public class FileLookup extends Object
Constructor and Description |
---|
FileLookup() |
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 |
lookupFileLocations(String filename,
ClassLoader cl) |
InputStream |
lookupFileStrict(String filename,
ClassLoader cl)
Looks up the file, see :
DefaultFileLookup . |
InputStream |
lookupFileStrict(URI uri,
ClassLoader cl) |
public 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.public InputStream lookupFileStrict(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.FileNotFoundException
- if file cannot be foundpublic InputStream lookupFileStrict(URI uri, ClassLoader cl)
public URL lookupFileLocation(String filename, ClassLoader cl)
public Collection lookupFileLocations(String filename, ClassLoader cl)
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.