public class WordlistLoader
extends java.lang.Object
Constructor and Description |
---|
WordlistLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.HashMap |
getStemDict(java.io.File wordstemfile)
Reads a stem dictionary.
|
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.HashSet |
getWordSet(java.io.Reader reader)
Reads lines from a Reader and adds every line as an entry to a HashSet (omitting
leading and trailing whitespace).
|
public static java.util.HashSet getWordSet(java.io.File wordfile) throws java.io.IOException
wordfile
- File containing the wordlistjava.io.IOException
public static java.util.HashSet getWordSet(java.io.Reader reader) throws java.io.IOException
reader
- Reader containing the wordlistjava.io.IOException
public static java.util.HashMap getStemDict(java.io.File wordstemfile) throws java.io.IOException
word\tstem(i.e. two tab seperated words)
java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.