Show / Hide Table of Contents

    Class ClasspathResourceLoader

    Simple IResourceLoader that uses and to open resources and s, respectively.

    Inheritance
    System.Object
    ClasspathResourceLoader
    Implements
    IResourceLoader
    Namespace: Lucene.Net.Analysis.Util
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public sealed class ClasspathResourceLoader : object, 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
    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
    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
    Stream

    Implements

    IResourceLoader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)