Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    IResourceLoader
    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 : IResourceLoader

    Constructors

    | Improve this Doc View Source

    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
    System.Type clazz

    Methods

    | Improve this Doc View Source

    FindType(String)

    Declaration
    public Type FindType(string cname)
    Parameters
    Type Name Description
    System.String cname
    Returns
    Type Description
    System.Type
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    OpenResource(String)

    Declaration
    public Stream OpenResource(string resource)
    Parameters
    Type Name Description
    System.String resource
    Returns
    Type Description
    System.IO.Stream

    Implements

    IResourceLoader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.