public class EmptyTranslator extends Object implements Translator
| Constructor and Description |
|---|
EmptyTranslator() |
public String translate(String text, String sourceLanguage, String targetLanguage)
Translatortranslate in interface Translatortext - The text to translate.sourceLanguage - The input text language (for example, "en").targetLanguage - The desired language to translate to (for example, "fr").public String translate(String text, String targetLanguage)
Translatortranslate in interface Translatortext - The text to translate.targetLanguage - The desired language to translate to (for example, "hi").public boolean isAvailable()
isAvailable in interface TranslatorCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.