Interface IResourceLoader
Abstraction for loading resources (streams, files, and classes).
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public interface IResourceLoader
Methods
FindType(string)
Finds class of the name
NOTE: This was findClass() in Lucene
Declaration
Type FindType(string cname)
Parameters
Type |
Name |
Description |
string |
cname |
|
Returns
NewInstance<T>(string)
Creates an instance of the name and expected type
Declaration
T NewInstance<T>(string cname)
Parameters
Type |
Name |
Description |
string |
cname |
|
Returns
Type Parameters
OpenResource(string)
Declaration
Stream OpenResource(string resource)
Parameters
Type |
Name |
Description |
string |
resource |
|
Returns