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 class
LingvoDSL.HtmlVisitor
Simple 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 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 anIDictionary
that wraps it.static void
loadPlugins()
Plugin loader.static void
unloadPlugins()
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:IDictionaryFactory
Determine 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:
isSupportedFile
in 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:IDictionaryFactory
Load the given file and return anIDictionary
that wraps it. Deprecated; useIDictionaryFactory.loadDict(File, Language)
instead.- Specified by:
loadDict
in 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)
-
-