Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator Class Reference

Inherits org.sleuthkit.autopsy.texttranslation.TextTranslator.

Public Member Functions

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

Private Member Functions

void loadTranslator ()

Static Private Member Functions

static boolean googleIsReachable ()

Private Attributes

Translate googleTranslate
final GoogleTranslatorSettings settings = new GoogleTranslatorSettings()
GoogleTranslatorSettingsPanel settingsPanel

Static Private Attributes

static final Logger logger = Logger.getLogger(GoogleTranslator.class.getName())
static final int MAX_PAYLOAD_SIZE = 5000

Detailed Description

TextTranslator which utilizes Google Cloud Translation to perform translation in Autopsy

Definition at line 49 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.GoogleTranslator ( )

Constructs a new GoogleTranslator

Definition at line 61 of file

Member Function Documentation

int org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getMaxTextChars ( )

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

The maximum character count.

Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.

Definition at line 188 of file

String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getName ( )

Get the name of the TextTranslator implementation

the name of the TextTranslator

Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.

Definition at line 132 of file

JPanel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getSettingsPanel ( )

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

the panel which displays the settings options

Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.

Definition at line 138 of file

static boolean org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.googleIsReachable ( )

Check if google is able to be reached

true if it can be, false otherwise

Definition at line 71 of file

void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.loadTranslator ( )

Load the Google Cloud Translation service given the currently saved settings

Definition at line 149 of file

void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.saveSettings ( ) throws TranslationConfigException

Saves the current state of the settings in the settings panel.


Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.

Definition at line 180 of file

String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.translate ( String  input) throws TranslationException

Translates a provided string

inputthe String to translate
the translated String

Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.

Definition at line 87 of file

References org.sleuthkit.autopsy.coreutils.EscapeUtil.unEscapeHtml().

Member Data Documentation

Translate org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.googleTranslate

Definition at line 56 of file

final Logger org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.logger = Logger.getLogger(GoogleTranslator.class.getName())

Definition at line 51 of file

final int org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.MAX_PAYLOAD_SIZE = 5000

Definition at line 53 of file

final GoogleTranslatorSettings org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.settings = new GoogleTranslatorSettings()

Definition at line 55 of file

GoogleTranslatorSettingsPanel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.settingsPanel

Definition at line 54 of file

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.