public class HunspellDictionaryHolder extends Object implements DictionaryHolder
Modifier and Type | Field and Description |
---|---|
protected String |
dicName |
protected Random |
generator |
protected static int |
INITIAL_SIZE |
static org.apache.commons.logging.Log |
log |
protected int |
wordCount |
protected List<String> |
words |
Constructor and Description |
---|
HunspellDictionaryHolder(String dicName) |
Modifier and Type | Method and Description |
---|---|
String |
getRandomWord() |
int |
getWordCount() |
void |
init() |
protected void |
loadDic() |
protected void |
loadDic(String dicName)
Deprecated.
since 6.0
|
protected static final int INITIAL_SIZE
protected int wordCount
public static final org.apache.commons.logging.Log log
public HunspellDictionaryHolder(String dicName)
public void init() throws IOException
init
in interface DictionaryHolder
IOException
@Deprecated protected void loadDic(String dicName) throws IOException
IOException
protected void loadDic() throws IOException
IOException
public int getWordCount()
getWordCount
in interface DictionaryHolder
public String getRandomWord()
getRandomWord
in interface DictionaryHolder
Copyright © 2016 Nuxeo SA. All rights reserved.