|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.WordlistLoader
Loader for text files that represent a list of stopwords.
Constructor Summary | |
WordlistLoader()
|
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(File wordfile)
Deprecated. Use getWordSet(File) instead |
static Hashtable |
getWordtable(String wordfile)
Deprecated. Use getWordSet(File) instead |
static Hashtable |
getWordtable(String path,
String wordfile)
Deprecated. Use getWordSet(File) instead |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WordlistLoader()
Method Detail |
public static HashSet getWordSet(File wordfile) throws IOException
wordfile
- File containing the wordlist
IOException
public static HashSet getWordSet(Reader reader) throws IOException
reader
- Reader containing the wordlist
IOException
public static Hashtable getWordtable(String path, String wordfile) throws IOException
getWordSet(File)
instead
path
- Path to the wordlistwordfile
- Name of the wordlist
IOException
public static Hashtable getWordtable(String wordfile) throws IOException
getWordSet(File)
instead
wordfile
- Complete path to the wordlist
IOException
public static Hashtable getWordtable(File wordfile) throws IOException
getWordSet(File)
instead
wordfile
- File object that points to the wordlist
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |