Class AbstractTranslator
- java.lang.Object
-
- org.apache.tika.language.translate.impl.AbstractTranslator
-
- All Implemented Interfaces:
Translator
- Direct Known Subclasses:
CachedTranslator
,ExternalTranslator
,GoogleTranslator
,JoshuaNetworkTranslator
,Lingo24Translator
,MarianTranslator
,RTGTranslator
public abstract class AbstractTranslator extends Object implements Translator
-
-
Constructor Summary
Constructors Constructor Description AbstractTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LanguageResult
detectLanguage(String text)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.tika.language.translate.Translator
isAvailable, translate, translate
-
-
-
-
Method Detail
-
detectLanguage
protected LanguageResult detectLanguage(String text) throws IOException
- Throws:
IOException
-
-