Package org.omegat.core.spellchecker
Class AbstractHunspellDictionary
java.lang.Object
org.omegat.core.spellchecker.AbstractHunspellDictionary
- All Implemented Interfaces:
Closeable,AutoCloseable,ISpellCheckerDictionary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Get a dictionary type.org.apache.lucene.analysis.hunspell.DictionarygetHunspellDictionary(String language) Get Hunspell dictionary.installHunspellDictionary(Path dictionaryDir, String language) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omegat.core.spellchecker.ISpellCheckerDictionary
getMorfologikDictionary
-
Constructor Details
-
AbstractHunspellDictionary
public AbstractHunspellDictionary()
-
-
Method Details
-
getHunspellDictionary
Description copied from interface:ISpellCheckerDictionaryGet Hunspell dictionary.- Specified by:
getHunspellDictionaryin interfaceISpellCheckerDictionary- Returns:
- Dictionary object when the language module has. Otherwise, null.
-
installHunspellDictionary
- Specified by:
installHunspellDictionaryin interfaceISpellCheckerDictionary
-
getDictionaryType
Description copied from interface:ISpellCheckerDictionaryGet a dictionary type.- Specified by:
getDictionaryTypein interfaceISpellCheckerDictionary- Returns:
- type of dictionary. If the module provides nothing, return null.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-