Modifier and Type | Method and Description |
---|---|
boolean |
isSupportedFile(java.io.File file)
Determine whether or not the supplied file is supported by this factory.
|
IDictionary |
loadDict(java.io.File file)
Load the given file and return an
IDictionary that wraps it. |
default IDictionary |
loadDict(java.io.File file,
Language language)
Load the given file and return an
IDictionary that wraps it. |
boolean isSupportedFile(java.io.File file)
file
- The file to checkIDictionary loadDict(java.io.File file) throws java.lang.Exception
IDictionary
that wraps it.
Deprecated; use loadDict(File, Language)
instead.file
- The file to loadjava.lang.Exception
- If the file could not be loaded for reasons that were not
determined by isSupportedFile(File)
default IDictionary loadDict(java.io.File file, Language language) throws java.lang.Exception
IDictionary
that wraps it. The
supplied file is guaranteed to have returned true from
isSupportedFile(File)
.file
- The file to loadlanguage
- The language of the dictionary's index (e.g. English for an
English-French dictionary)java.lang.Exception
- If the file could not be loaded for reasons that were not
determined by isSupportedFile(File)