• API

    Show / Hide Table of Contents

    Class CommandLineUtil

    Class containing some useful methods used by command line tools

    Inheritance
    System.Object
    CommandLineUtil
    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.Util
    Assembly: Lucene.Net.dll
    Syntax
    public static class CommandLineUtil

    Methods

    | Improve this Doc View Source

    LoadDirectoryClass(String)

    Loads a specific Directory implementation.

    Declaration
    public static Type LoadDirectoryClass(string clazzName)
    Parameters
    Type Name Description
    System.String clazzName

    The name of the Directory class to load.

    Returns
    Type Description
    System.Type

    The Directory class loaded.

    Exceptions
    Type Condition
    System.TypeLoadException

    If the specified class cannot be found.

    | Improve this Doc View Source

    LoadFSDirectoryClass(String)

    Loads a specific FSDirectory implementation.

    Declaration
    public static Type LoadFSDirectoryClass(string clazzName)
    Parameters
    Type Name Description
    System.String clazzName

    The name of the FSDirectory class to load.

    Returns
    Type Description
    System.Type

    The FSDirectory class loaded.

    Exceptions
    Type Condition
    System.TypeLoadException

    If the specified class cannot be found.

    | Improve this Doc View Source

    NewFSDirectory(String, DirectoryInfo)

    Creates a specific FSDirectory instance starting from its class name.

    Declaration
    public static FSDirectory NewFSDirectory(string clazzName, DirectoryInfo dir)
    Parameters
    Type Name Description
    System.String clazzName

    The name of the FSDirectory class to load.

    System.IO.DirectoryInfo dir

    The System.IO.DirectoryInfo to be used as parameter constructor.

    Returns
    Type Description
    FSDirectory

    The new FSDirectory instance

    | Improve this Doc View Source

    NewFSDirectory(Type, DirectoryInfo)

    Creates a new specific FSDirectory instance.

    Declaration
    public static FSDirectory NewFSDirectory(Type clazz, DirectoryInfo dir)
    Parameters
    Type Name Description
    System.Type clazz

    The class of the object to be created

    System.IO.DirectoryInfo dir

    The System.IO.DirectoryInfo to be used as parameter constructor

    Returns
    Type Description
    FSDirectory

    The new FSDirectory instance.

    Exceptions
    Type Condition
    System.MissingMethodException

    If the Directory does not have a constructor that takes System.IO.DirectoryInfo.

    System.MemberAccessException

    If the class is abstract or an interface.

    System.TypeLoadException

    If the constructor does not have public visibility.

    System.Reflection.TargetInvocationException

    If the constructor throws an exception

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