Interface Hunspell.Factory
- Enclosing class:
Hunspell
public static interface Hunspell.Factory
-
Method Summary
Modifier and TypeMethodDescriptiondefault HunspellDictionarycreateFromLocalFiles(String languageCode, Path dictionary, Path affix) An equivalent ofcreateFromStreams(String, InputStream, InputStream)that can be used if the caller is sure that the Hunspell dictionaries are located in the files in the local file system.createFromStreams(String languageCode, InputStream dictionary, InputStream affix) Create a Hunspell dictionary from the given streams.
-
Method Details
-
createFromLocalFiles
default HunspellDictionary createFromLocalFiles(String languageCode, Path dictionary, Path affix) throws IOException An equivalent ofcreateFromStreams(String, InputStream, InputStream)that can be used if the caller is sure that the Hunspell dictionaries are located in the files in the local file system. This allows for more efficient implementation.- Throws:
IOException
-
createFromStreams
HunspellDictionary createFromStreams(String languageCode, InputStream dictionary, InputStream affix) throws IOException Create a Hunspell dictionary from the given streams. All necessary information should be extracted from both streams by the time this method returns. Closing the streams is not necessary in the implementation of this method, as the caller will close them itself.- Throws:
IOException
-