public class BeoLingusTranslator extends Object implements Translator
Constructor and Description |
---|
BeoLingusTranslator(File file) |
Modifier and Type | Method and Description |
---|---|
String |
cleanTranslationForReplace(String s,
String prevWord) |
DataSource |
getDataSource() |
static BeoLingusTranslator |
getInstance(File beolingusFile) |
static BeoLingusTranslator |
getInstance(GlobalConfig globalConfig) |
String |
getMessage() |
String |
getTranslationSuffix(String s) |
List<String> |
split(String s) |
List<TranslationEntry> |
translate(String term,
String fromLang,
String toLang) |
public BeoLingusTranslator(File file) throws IOException
IOException
public static BeoLingusTranslator getInstance(File beolingusFile) throws IOException
IOException
public static BeoLingusTranslator getInstance(GlobalConfig globalConfig) throws IOException
IOException
public List<TranslationEntry> translate(String term, String fromLang, String toLang)
translate
in interface Translator
public String cleanTranslationForReplace(String s, String prevWord)
cleanTranslationForReplace
in interface Translator
public String getMessage()
getMessage
in interface Translator
public String getTranslationSuffix(String s)
getTranslationSuffix
in interface Translator
public DataSource getDataSource()
getDataSource
in interface Translator