Package org.omegat.core.dictionaries
Class LingvoDSL
- java.lang.Object
-
- org.omegat.core.dictionaries.LingvoDSL
-
- All Implemented Interfaces:
IDictionaryFactory
public class LingvoDSL extends java.lang.Object implements IDictionaryFactory
Dictionary implementation for Lingvo DSL format.Lingvo DSL format described in Lingvo help. See also links below.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLingvoDSL.HtmlVisitorSimple HTML filter for LingvoDSL parser.
-
Constructor Summary
Constructors Constructor Description LingvoDSL()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSupportedFile(java.io.File file)Determine whether or not the supplied file is supported by this factory.IDictionaryloadDict(java.io.File file)Load the given file and return anIDictionarythat wraps it.static voidloadPlugins()Plugin loader.static voidunloadPlugins()Plugin unloader.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omegat.core.dictionaries.IDictionaryFactory
loadDict
-
-
-
-
Method Detail
-
loadPlugins
public static void loadPlugins()
Plugin loader.
-
unloadPlugins
public static void unloadPlugins()
Plugin unloader.
-
isSupportedFile
public final boolean isSupportedFile(java.io.File file)
Description copied from interface:IDictionaryFactoryDetermine whether or not the supplied file is supported by this factory. This is intended to be a lightweight check, e.g. looking for a file extension.- Specified by:
isSupportedFilein interfaceIDictionaryFactory- Parameters:
file- The file to check- Returns:
- Whether or not the file is supported
-
loadDict
public final IDictionary loadDict(java.io.File file) throws java.lang.Exception
Description copied from interface:IDictionaryFactoryLoad the given file and return anIDictionarythat wraps it. Deprecated; useIDictionaryFactory.loadDict(File, Language)instead.- Specified by:
loadDictin interfaceIDictionaryFactory- Parameters:
file- The file to load- Returns:
- An IDictionary file that can read articles from the file
- Throws:
java.lang.Exception- If the file could not be loaded for reasons that were not determined byIDictionaryFactory.isSupportedFile(File)
-
-