Autopsy
4.19.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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 |
TextTranslator which utilizes Google Cloud Translation to perform translation in Autopsy
Definition at line 49 of file GoogleTranslator.java.
org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.GoogleTranslator | ( | ) |
Constructs a new GoogleTranslator
Definition at line 61 of file GoogleTranslator.java.
int org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getMaxTextChars | ( | ) |
Gets the maximum number of characters allowed in a translation request.
Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.
Definition at line 188 of file GoogleTranslator.java.
String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getName | ( | ) |
Get the name of the TextTranslator implementation
Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.
Definition at line 132 of file GoogleTranslator.java.
JPanel org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.getSettingsPanel | ( | ) |
Get the JPanel to display on the settings options panel when this TextTranslator is selected
Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.
Definition at line 138 of file GoogleTranslator.java.
|
staticprivate |
Check if google is able to be reached
Definition at line 71 of file GoogleTranslator.java.
|
private |
Load the Google Cloud Translation service given the currently saved settings
Definition at line 149 of file GoogleTranslator.java.
void org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.saveSettings | ( | ) | throws TranslationConfigException |
Saves the current state of the settings in the settings panel.
TranslationConfigException |
Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.
Definition at line 180 of file GoogleTranslator.java.
String org.sleuthkit.autopsy.texttranslation.translators.GoogleTranslator.translate | ( | String | input | ) | throws TranslationException |
Translates a provided string
input | the String to translate |
TranslationException |
Implements org.sleuthkit.autopsy.texttranslation.TextTranslator.
Definition at line 87 of file GoogleTranslator.java.
References org.sleuthkit.autopsy.coreutils.EscapeUtil.unEscapeHtml().
|
private |
Definition at line 56 of file GoogleTranslator.java.
|
staticprivate |
Definition at line 51 of file GoogleTranslator.java.
|
staticprivate |
Definition at line 53 of file GoogleTranslator.java.
|
private |
Definition at line 55 of file GoogleTranslator.java.
|
private |
Definition at line 54 of file GoogleTranslator.java.
Copyright © 2012-2021 Basis Technology. Generated on: Thu Sep 30 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.