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

Static Public Member Functions

static String translate (String fileName) throws NoServiceProviderException, TranslationException
 

Private Member Functions

 FileNameTranslationUtil ()
 

Detailed Description

A utility to translate file names.

Definition at line 29 of file FileNameTranslationUtil.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.texttranslation.utils.FileNameTranslationUtil.FileNameTranslationUtil ( )
private

Prevent instantiation of this utility class

Definition at line 71 of file FileNameTranslationUtil.java.

Member Function Documentation

static String org.sleuthkit.autopsy.texttranslation.utils.FileNameTranslationUtil.translate ( String  fileName) throws NoServiceProviderException, TranslationException
static

Translates a file name using the configured machine translation service.

Parameters
fileNameThe file name.
Returns
The translation of the file name.
Exceptions
NoServiceProviderExceptionIf machine translation is not configured.
TranslationExceptionIf there is an error doing the translation.

Definition at line 43 of file FileNameTranslationUtil.java.

References org.sleuthkit.autopsy.texttranslation.TextTranslationService.getInstance(), and org.sleuthkit.autopsy.texttranslation.TextTranslationService.translate().

Referenced by org.sleuthkit.autopsy.datamodel.utils.FileNameTransTask.computePropertyValue().


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.