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.File wordfile,
java.lang.String comment)
Loads a text file and adds every non-comment 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).
|
static java.util.HashSet |
getWordSet(java.io.Reader reader,
java.lang.String comment)
Reads lines from a Reader and adds every non-comment 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.IOExceptionpublic static java.util.HashSet getWordSet(java.io.File wordfile,
java.lang.String comment)
throws java.io.IOException
wordfile - File containing the wordlistcomment - The comment string to ignorejava.io.IOExceptionpublic static java.util.HashSet getWordSet(java.io.Reader reader)
throws java.io.IOException
reader - Reader containing the wordlistjava.io.IOExceptionpublic static java.util.HashSet getWordSet(java.io.Reader reader,
java.lang.String comment)
throws java.io.IOException
reader - Reader containing the wordlistcomment - The string representing a comment.java.io.IOExceptionpublic static java.util.HashMap getStemDict(java.io.File wordstemfile)
throws java.io.IOException
word\tstem(i.e. two tab seperated words)
java.io.IOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.