org.apache.lucene.analysis.de
Class WordlistLoader
java.lang.Object
org.apache.lucene.analysis.de.WordlistLoader
- public class WordlistLoader
- extends Object
Loads a text file and adds every line as an entry to a Hashtable. Every line
should contain only one word. If the file is not found or on any error, an
empty table is returned.
- Version:
- $Id: WordlistLoader.java,v 1.4 2002/08/18 17:33:16 otis Exp $
- Author:
- Gerhard Schwarz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordlistLoader
public WordlistLoader()
getWordtable
public static Hashtable getWordtable(String path,
String wordfile)
- Parameters:
path
- Path to the wordlistwordfile
- Name of the wordlist
getWordtable
public static Hashtable getWordtable(String wordfile)
- Parameters:
wordfile
- Complete path to the wordlist
getWordtable
public static Hashtable getWordtable(File wordfile)
- Parameters:
wordfile
- File containing the wordlist
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.