| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.analysis.util.ClasspathResourceLoader
public final class ClasspathResourceLoader
Simple ResourceLoader that uses ClassLoader.getResourceAsStream(String)
 and Class.forName(String,boolean,ClassLoader) to open resources and
 classes, respectively.
| Constructor Summary | |
|---|---|
ClasspathResourceLoader()
Creates an instance using the context classloader to load Resources and classes.  | 
|
ClasspathResourceLoader(Class<?> clazz)
Creates an instance using the context classloader to load Resources and classes Resources are resolved relative to the given class, if path is not absolute.  | 
|
ClasspathResourceLoader(ClassLoader loader)
Creates an instance using the given classloader to load Resources and classes.  | 
|
| Method Summary | ||
|---|---|---|
 | 
newInstance(String cname,
            Class<T> expectedType)
Creates a class of the name and expected type  | 
|
 InputStream | 
openResource(String resource)
Opens a named resource  | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ClasspathResourceLoader()
public ClasspathResourceLoader(ClassLoader loader)
public ClasspathResourceLoader(Class<?> clazz)
| Method Detail | 
|---|
public InputStream openResource(String resource)
                         throws IOException
ResourceLoader
openResource in interface ResourceLoaderIOException
public <T> T newInstance(String cname,
                         Class<T> expectedType)
ResourceLoader
newInstance in interface ResourceLoader
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||