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

Public Member Functions

boolean hasProvider ()
String translate (String input) throws NoServiceProviderException, TranslationException

Static Public Member Functions

static TextTranslationService getInstance ()

Private Member Functions

 TextTranslationService ()

Private Attributes

final Optional< TextTranslatortranslator

Static Private Attributes

static final TextTranslationService tts = new TextTranslationService()

Detailed Description

Performs a lookup for a TextTranslator service provider and if present, will use this provider to run translation on the input.

Definition at line 29 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.texttranslation.TextTranslationService.TextTranslationService ( )

Definition at line 35 of file

Member Function Documentation

static TextTranslationService org.sleuthkit.autopsy.texttranslation.TextTranslationService.getInstance ( )
boolean org.sleuthkit.autopsy.texttranslation.TextTranslationService.hasProvider ( )

Returns if a TextTranslator lookup successfully found an implementing class.


Definition at line 74 of file

Referenced by org.sleuthkit.autopsy.corecomponents.ViewPreferencesPanel.load().

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.

inputInput string to be translated
Translation string
NoServiceProviderExceptionFailed to find a Translation service provider
TranslationExceptionSystem exception for classes to use when specific translation implementations fail

Definition at line 60 of file

Member Data Documentation

final Optional<TextTranslator> org.sleuthkit.autopsy.texttranslation.TextTranslationService.translator

Definition at line 33 of file

final TextTranslationService org.sleuthkit.autopsy.texttranslation.TextTranslationService.tts = new TextTranslationService()

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

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.