public class HunspellDictionaryHolder extends Object implements DictionaryHolder
| Modifier and Type | Field and Description | 
|---|---|
protected static String | 
DEFAULT_DIC  | 
protected String | 
dicName  | 
protected static int | 
INITIAL_SIZE  | 
static org.apache.commons.logging.Log | 
log  | 
protected static Random | 
RANDOM  | 
protected int | 
wordCount  | 
protected List<String> | 
words  | 
| Constructor and Description | 
|---|
HunspellDictionaryHolder(String lang)  | 
| 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 String DEFAULT_DIC
protected static final int INITIAL_SIZE
protected int wordCount
public static final org.apache.commons.logging.Log log
public HunspellDictionaryHolder(String lang)
public void init() throws IOException
init in interface DictionaryHolderIOException@Deprecated protected void loadDic(String dicName) throws IOException
IOExceptionprotected void loadDic() throws IOException
IOExceptionpublic int getWordCount()
getWordCount in interface DictionaryHolderpublic String getRandomWord()
getRandomWord in interface DictionaryHolderCopyright © 2019 Nuxeo. All rights reserved.