public abstract class AbstractFileLookup extends java.lang.Object implements FileLookup
| Constructor and Description |
|---|
AbstractFileLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.io.InputStream |
getAsInputStreamFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl) |
protected abstract java.net.URL |
getAsURLFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl) |
protected abstract java.util.Collection<java.net.URL> |
getAsURLsFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl) |
java.io.InputStream |
lookupFile(java.lang.String filename,
java.lang.ClassLoader cl)
Looks up the file, see :
FileLookupFactory.DefaultFileLookup. |
java.net.URL |
lookupFileLocation(java.lang.String filename,
java.lang.ClassLoader cl) |
java.util.Collection<java.net.URL> |
lookupFileLocations(java.lang.String filename,
java.lang.ClassLoader cl) |
java.io.InputStream |
lookupFileStrict(java.lang.String filename,
java.lang.ClassLoader cl)
Looks up the file, see :
FileLookupFactory.DefaultFileLookup. |
java.io.InputStream |
lookupFileStrict(java.net.URI uri,
java.lang.ClassLoader cl)
Looks up the file, see :
FileLookupFactory.DefaultFileLookup. |
public java.io.InputStream lookupFile(java.lang.String filename,
java.lang.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 java.io.InputStream getAsInputStreamFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl)
public java.io.InputStream lookupFileStrict(java.lang.String filename,
java.lang.ClassLoader cl)
throws java.io.FileNotFoundException
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.java.io.FileNotFoundException - if file cannot be foundpublic java.io.InputStream lookupFileStrict(java.net.URI uri,
java.lang.ClassLoader cl)
throws java.io.FileNotFoundException
FileLookupFileLookupFactory.DefaultFileLookup.lookupFileStrict in interface FileLookupuri - An absolute, hierarchical URI with a scheme equal to
"file" that represents the file to lookupjava.io.FileNotFoundException - if file cannot be foundpublic java.net.URL lookupFileLocation(java.lang.String filename,
java.lang.ClassLoader cl)
lookupFileLocation in interface FileLookupprotected abstract java.net.URL getAsURLFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl)
public java.util.Collection<java.net.URL> lookupFileLocations(java.lang.String filename,
java.lang.ClassLoader cl)
throws java.io.IOException
lookupFileLocations in interface FileLookupjava.io.IOExceptionprotected abstract java.util.Collection<java.net.URL> getAsURLsFromClassLoader(java.lang.String filename,
java.lang.ClassLoader cl)
throws java.io.IOException
java.io.IOException