Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
synchronized int | getMaxTextChars () |
synchronized boolean | hasProvider () |
synchronized String | translate (String input) throws NoServiceProviderException, TranslationException |
Static Public Member Functions | |
static TextTranslationService | getInstance () |
Private Member Functions | |
TextTranslationService () | |
Private Attributes | |
Optional< TextTranslator > | selectedTranslator |
final Collection<?extends TextTranslator > | translators |
Static Private Attributes | |
static final TextTranslationService | tts = new TextTranslationService() |
Performs a lookup for a TextTranslator service provider and if present, will use this provider to run translation on the input.
Definition at line 32 of file TextTranslationService.java.
|
private |
Definition at line 40 of file TextTranslationService.java.
|
static |
Definition at line 47 of file TextTranslationService.java.
References org.sleuthkit.autopsy.texttranslation.TextTranslationService.tts.
Referenced by org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.isSupported(), org.sleuthkit.autopsy.corecomponents.ViewPreferencesPanel.load(), org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.setNode(), and org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.BackgroundTranslationTask.translate().
synchronized int org.sleuthkit.autopsy.texttranslation.TextTranslationService.getMaxTextChars | ( | ) |
Gets the maximum number of characters allowed in a translation request.
Definition at line 131 of file TextTranslationService.java.
References org.sleuthkit.autopsy.texttranslation.TextTranslationService.selectedTranslator.
Referenced by org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.setNode().
synchronized boolean org.sleuthkit.autopsy.texttranslation.TextTranslationService.hasProvider | ( | ) |
Returns if a TextTranslator lookup successfully found an implementing class.
Definition at line 122 of file TextTranslationService.java.
References org.sleuthkit.autopsy.texttranslation.TextTranslationService.selectedTranslator.
Referenced by org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.isSupported(), org.sleuthkit.autopsy.corecomponents.ViewPreferencesPanel.load(), and org.sleuthkit.autopsy.texttranslation.TextTranslationService.translate().
synchronized String org.sleuthkit.autopsy.texttranslation.TextTranslationService.translate | ( | String | input | ) | throws NoServiceProviderException, TranslationException |
Translates the input string using whichever TextTranslator Service Provider was found during lookup.
input | Input string to be translated |
NoServiceProviderException | Failed to find a Translation service provider |
TranslationException | System exception for classes to use when specific translation implementations fail |
Definition at line 80 of file TextTranslationService.java.
References org.sleuthkit.autopsy.texttranslation.TextTranslationService.hasProvider(), and org.sleuthkit.autopsy.texttranslation.TextTranslationService.selectedTranslator.
Referenced by org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.BackgroundTranslationTask.translate().
|
private |
Definition at line 38 of file TextTranslationService.java.
Referenced by org.sleuthkit.autopsy.texttranslation.TextTranslationService.getMaxTextChars(), org.sleuthkit.autopsy.texttranslation.TextTranslationService.hasProvider(), and org.sleuthkit.autopsy.texttranslation.TextTranslationService.translate().
|
private |
Definition at line 36 of file TextTranslationService.java.
|
staticprivate |
Definition at line 34 of file TextTranslationService.java.
Referenced by org.sleuthkit.autopsy.texttranslation.TextTranslationService.getInstance().
Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.