Class ClasspathResourceLoader
Simple IResourceLoader that uses System.Reflection.Assembly.GetManifestResourceStream(System.String) and System.Reflection.Assembly.GetType(System.String) to open resources and System.Types, respectively.
Inheritance
System.Object
    ClasspathResourceLoader
  Implements
Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public sealed class ClasspathResourceLoader : IResourceLoaderConstructors
| Improve this Doc View SourceClasspathResourceLoader(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 | 
|---|---|---|
| System.Type | clazz | 
Methods
| Improve this Doc View SourceFindType(String)
Declaration
public Type FindType(string cname)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | cname | 
Returns
| Type | Description | 
|---|---|
| System.Type | 
NewInstance<T>(String)
Declaration
public T NewInstance<T>(string cname)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | cname | 
Returns
| Type | Description | 
|---|---|
| T | 
Type Parameters
| Name | Description | 
|---|---|
| T | 
OpenResource(String)
Declaration
public Stream OpenResource(string resource)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | resource | 
Returns
| Type | Description | 
|---|---|
| System.IO.Stream |