|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.CommandLineUtil
public final class CommandLineUtil
Class containing some useful methods used by command line tools
| Method Summary | |
|---|---|
static Class<? extends Directory> |
loadDirectoryClass(String clazzName)
Loads a specific Directory implementation |
static Class<? extends FSDirectory> |
loadFSDirectoryClass(String clazzName)
Loads a specific FSDirectory implementation |
static FSDirectory |
newFSDirectory(Class<? extends FSDirectory> clazz,
File file)
Creates a new specific FSDirectory instance |
static FSDirectory |
newFSDirectory(String clazzName,
File file)
Creates a specific FSDirectory instance starting from its class name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FSDirectory newFSDirectory(String clazzName,
File file)
clazzName - The name of the FSDirectory class to loadfile - The file to be used as parameter constructor
public static Class<? extends Directory> loadDirectoryClass(String clazzName)
throws ClassNotFoundException
clazzName - The name of the Directory class to load
ClassNotFoundException
public static Class<? extends FSDirectory> loadFSDirectoryClass(String clazzName)
throws ClassNotFoundException
clazzName - The name of the FSDirectory class to load
ClassNotFoundException
public static FSDirectory newFSDirectory(Class<? extends FSDirectory> clazz,
File file)
throws NoSuchMethodException,
InstantiationException,
IllegalAccessException,
InvocationTargetException
clazz - The class of the object to be createdfile - The file to be used as parameter constructor
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||