Class CommandLineUtil
Class containing some useful methods used by command line tools
Inheritance
System.Object
CommandLineUtil
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public sealed class CommandLineUtil : object
Methods
| Improve this Doc View SourceLoadDirectoryClass(String)
Loads a specific Directory implementation.
Declaration
public static Type LoadDirectoryClass(string clazzName)
Parameters
Type | Name | Description |
---|---|---|
System. |
clazzName | The name of the Directory class to load. |
Returns
Type | Description |
---|---|
Type | The Directory class loaded. |
LoadFSDirectoryClass(String)
Loads a specific FSDirectory implementation.
Declaration
public static Type LoadFSDirectoryClass(string clazzName)
Parameters
Type | Name | Description |
---|---|---|
System. |
clazzName | The name of the FSDirectory class to load. |
Returns
Type | Description |
---|---|
Type | The FSDirectory class loaded. |
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. |
clazzName | The name of the FSDirectory class to load. |
Directory |
dir | The |
Returns
Type | Description |
---|---|
FSDirectory | The new FSDirectory instance |
NewFSDirectory(Type, DirectoryInfo)
Creates a new specific FSDirectory instance.
Declaration
public static FSDirectory NewFSDirectory(Type clazz, DirectoryInfo dir)
Parameters
Type | Name | Description |
---|---|---|
Type | clazz | The class of the object to be created |
Directory |
dir | The |
Returns
Type | Description |
---|---|
FSDirectory | The new FSDirectory instance. |