| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.lucene.analysis.de.WordlistLoaderpublic class WordlistLoaderextends java.lang.ObjectMethod Summary | |
static HashSet |
|
static Hashtable |
|
static Hashtable |
|
static Hashtable |
|
public static HashSet getWordSet(File wordfile)
throws IOExceptionLoads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). Every line of the file should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like GermanAnalyzer).
- Parameters:
wordfile- File containing the wordlist
- Returns:
- A HashSet with the file's words
public static Hashtable getWordtable(File wordfile)
throws IOExceptionDeprecated. Use
getWordSet(File)getWordSet(File)} instead
- Parameters:
wordfile- File object that points to the wordlist
public static Hashtable getWordtable(String wordfile)
throws IOExceptionDeprecated. Use
getWordSet(File)getWordSet(File)} instead
- Parameters:
wordfile- Complete path to the wordlist
public static Hashtable getWordtable(String path,
String wordfile)
throws IOExceptionDeprecated. Use
getWordSet(File)getWordSet(File)} instead
- Parameters:
path- Path to the wordlistwordfile- Name of the wordlist