Class ClasspathResourceLoader
Inheritance
ClasspathResourceLoader
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class ClasspathResourceLoader : IResourceLoader
Constructors
ClasspathResourceLoader(Type)
Creates an instance using the System.Assembly of the given class to load Resources and classes
Resource paths must be absolute.
Declaration
public ClasspathResourceLoader(Type clazz)
Parameters
Type |
Name |
Description |
Type |
clazz |
|
Methods
FindType(string)
Finds class of the name
NOTE: This was findClass() in Lucene
Declaration
public Type FindType(string cname)
Parameters
Type |
Name |
Description |
string |
cname |
|
Returns
NewInstance<T>(string)
Creates an instance of the name and expected type
Declaration
public T NewInstance<T>(string cname)
Parameters
Type |
Name |
Description |
string |
cname |
|
Returns
Type Parameters
OpenResource(string)
Declaration
public Stream OpenResource(string resource)
Parameters
Type |
Name |
Description |
string |
resource |
|
Returns
Implements