org.apache.lucene.analysis
public class WordlistLoader extends Object
Version: $Id: WordlistLoader.java 192989 2005-06-22 19:59:03Z dnaber $
Method Summary | |
---|---|
static HashSet | getWordSet(File wordfile)
Loads a text file and adds every line as an entry to a HashSet (omitting
leading and trailing whitespace). |
static HashSet | getWordSet(Reader reader)
Reads lines from a Reader and adds every line as an entry to a HashSet (omitting
leading and trailing whitespace). |
static Hashtable | getWordtable(String path, String wordfile) |
static Hashtable | getWordtable(String wordfile) |
static Hashtable | getWordtable(File wordfile) |
Parameters: wordfile File containing the wordlist
Returns: A HashSet with the file's words
Parameters: reader Reader containing the wordlist
Returns: A HashSet with the reader's words
Deprecated: Use getWordSet instead
Parameters: path Path to the wordlist wordfile Name of the wordlist
Deprecated: Use getWordSet instead
Parameters: wordfile Complete path to the wordlist
Deprecated: Use getWordSet instead
Parameters: wordfile File object that points to the wordlist