Class HunspellDictionaryHolder
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.random.HunspellDictionaryHolder
-
- All Implemented Interfaces:
DictionaryHolder
public class HunspellDictionaryHolder extends Object implements DictionaryHolder
- Author:
- Thierry Delprat
-
-
Constructor Summary
Constructors Constructor Description HunspellDictionaryHolder(String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getRandomWord()
int
getWordCount()
void
init()
protected void
loadDic()
protected void
loadDic(String dicName)
Deprecated.since 6.0
-
-
-
Field Detail
-
DEFAULT_DIC
protected static final String DEFAULT_DIC
- See Also:
- Constant Field Values
-
INITIAL_SIZE
protected static final int INITIAL_SIZE
- See Also:
- Constant Field Values
-
RANDOM
protected static final Random RANDOM
-
wordCount
protected int wordCount
-
dicName
protected String dicName
-
log
public static final Log log
-
-
Constructor Detail
-
HunspellDictionaryHolder
public HunspellDictionaryHolder(String lang)
-
-
Method Detail
-
init
public void init() throws IOException
- Specified by:
init
in interfaceDictionaryHolder
- Throws:
IOException
-
loadDic
@Deprecated protected void loadDic(String dicName) throws IOException
Deprecated.since 6.0- Throws:
IOException
-
loadDic
protected void loadDic() throws IOException
- Throws:
IOException
- Since:
- 6.0
-
getWordCount
public int getWordCount()
- Specified by:
getWordCount
in interfaceDictionaryHolder
-
getRandomWord
public String getRandomWord()
- Specified by:
getRandomWord
in interfaceDictionaryHolder
-
-