Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | List of all members
org.sleuthkit.autopsy.texttranslation.TextTranslator Interface Reference

Inherited by org.sleuthkit.autopsy.texttranslation.translators.BingTranslator, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.

Public Member Functions

int getMaxTextChars ()
 
String getName ()
 
JPanel getSettingsPanel ()
 
void saveSettings () throws TranslationConfigException
 
String translate (String input) throws TranslationException
 

Detailed Description

Interface for creating text translators. Implementing classes will be picked up and run by the Text Translation Service.

Definition at line 27 of file TextTranslator.java.

Member Function Documentation

int org.sleuthkit.autopsy.texttranslation.TextTranslator.getMaxTextChars ( )

Gets the maximum number of characters allowed in a translation request.

Returns
The maximum character count.

Implemented in org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator, and org.sleuthkit.autopsy.texttranslation.translators.BingTranslator.

String org.sleuthkit.autopsy.texttranslation.TextTranslator.getName ( )
JPanel org.sleuthkit.autopsy.texttranslation.TextTranslator.getSettingsPanel ( )

Get the JPanel to display on the settings options panel when this TextTranslator is selected

Returns
the panel which displays the settings options

Implemented in org.sleuthkit.autopsy.texttranslation.translators.BingTranslator, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.

void org.sleuthkit.autopsy.texttranslation.TextTranslator.saveSettings ( ) throws TranslationConfigException
String org.sleuthkit.autopsy.texttranslation.TextTranslator.translate ( String  input) throws TranslationException

Translates a provided string

Parameters
inputthe String to translate
Returns
the translated String
Exceptions
TranslationException

Implemented in org.sleuthkit.autopsy.texttranslation.translators.BingTranslator, and org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.


The documentation for this interface was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Wed Oct 5 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.