public interface Translator
String translate(String text, String sourceLanguage, String targetLanguage) throws TikaException, IOException
text
- The text to translate.sourceLanguage
- The input text language (for example, "en").targetLanguage
- The desired language to translate to (for example, "fr").TikaException
- When there is an error translating.IOException
String translate(String text, String targetLanguage) throws TikaException, IOException
text
- The text to translate.targetLanguage
- The desired language to translate to (for example, "hi").TikaException
- When there is an error translating.IOException
boolean isAvailable()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.