|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.analysis.de.WordlistLoader
public class WordlistLoader
Loader for text files that represent a list of stopwords.
Constructor Summary | |
---|---|
WordlistLoader()
|
Method Summary | |
---|---|
static java.util.HashSet |
getWordSet(java.io.File wordfile)
Loads a text file and adds every line as an entry to a HashSet (omitting leading and trailing whitespace). |
static java.util.Hashtable |
getWordtable(java.io.File wordfile)
Deprecated. Use getWordSet(File) getWordSet(File)} instead |
static java.util.Hashtable |
getWordtable(java.lang.String wordfile)
Deprecated. Use getWordSet(File) getWordSet(File)} instead |
static java.util.Hashtable |
getWordtable(java.lang.String path,
java.lang.String wordfile)
Deprecated. Use getWordSet(File) 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 java.util.HashSet getWordSet(java.io.File wordfile) throws java.io.IOException
wordfile
- File containing the wordlist
java.io.IOException
public static java.util.Hashtable getWordtable(java.lang.String path, java.lang.String wordfile) throws java.io.IOException
getWordSet(File)
getWordSet(File)} instead
path
- Path to the wordlistwordfile
- Name of the wordlist
java.io.IOException
public static java.util.Hashtable getWordtable(java.lang.String wordfile) throws java.io.IOException
getWordSet(File)
getWordSet(File)} instead
wordfile
- Complete path to the wordlist
java.io.IOException
public static java.util.Hashtable getWordtable(java.io.File wordfile) throws java.io.IOException
getWordSet(File)
getWordSet(File)} instead
wordfile
- File object that points to the wordlist
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |