public abstract class AbstractFileLookup extends Object implements FileLookup
| Constructor and Description |
|---|
AbstractFileLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
getAsInputStreamFromClassLoader(String filename,
ClassLoader cl) |
protected abstract URL |
getAsURLFromClassLoader(String filename,
ClassLoader cl) |
protected abstract Collection |
getAsURLsFromClassLoader(String filename,
ClassLoader cl) |
InputStream |
lookupFile(String filename,
ClassLoader cl)
Looks up the file, see :
FileLookupFactory.DefaultFileLookup. |
URL |
lookupFileLocation(String filename,
ClassLoader cl) |
Collection |
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. |
public InputStream lookupFile(String filename, ClassLoader cl)
FileLookupFactory.DefaultFileLookup.lookupFile in interface FileLookupfilename - might be the name of the file (too look it up in the class path) or an url to a file.protected abstract InputStream getAsInputStreamFromClassLoader(String filename, ClassLoader cl)
public InputStream lookupFileStrict(String filename, ClassLoader cl)
FileLookupFactory.DefaultFileLookup.lookupFileStrict in interface FileLookupfilename - 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)
FileLookupFileLookupFactory.DefaultFileLookup.lookupFileStrict in interface FileLookupuri - An absolute, hierarchical URI with a scheme equal to
"file" that represents the file to lookuppublic URL lookupFileLocation(String filename, ClassLoader cl)
lookupFileLocation in interface FileLookupprotected abstract URL getAsURLFromClassLoader(String filename, ClassLoader cl)
public Collection lookupFileLocations(String filename, ClassLoader cl)
lookupFileLocations in interface FileLookupprotected abstract Collection getAsURLsFromClassLoader(String filename, ClassLoader cl)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.