Autopsy
4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits SwingWorker< String, Void >.
Public Member Functions | |
String | doInBackground () throws InterruptedException |
void | done () |
Private Member Functions | |
String | extractText (AbstractFile source, boolean ocrEnabled) throws IOException, InterruptedException, TextExtractor.InitReaderException |
String | getFileText (Node node) throws IOException, InterruptedException, TextExtractor.InitReaderException |
Reader | getTextExtractor (AbstractFile file, boolean ocrEnabled) throws IOException, TextExtractor.InitReaderException |
String | translate (String input) throws InterruptedException |
void | updateExtractionLoadingMessage (boolean isImage) |
Fetches file text and performs translation.
Definition at line 162 of file TranslatedTextViewer.java.
String org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.BackgroundTranslationTask.doInBackground | ( | ) | throws InterruptedException |
Definition at line 172 of file TranslatedTextViewer.java.
void org.sleuthkit.autopsy.texttranslation.ui.TranslatedTextViewer.BackgroundTranslationTask.done | ( | ) |
Definition at line 219 of file TranslatedTextViewer.java.
References org.sleuthkit.autopsy.texttranslation.ui.TranslationContentPanel.display(), and org.sleuthkit.autopsy.coreutils.TextUtil.getTextDirection().
|
private |
Fetches text from a file.
source | the AbstractFile source to get a Reader for |
ocrEnabled | true if OCR is enabled false otherwise |
IOException | |
InterruptedException | |
org.sleuthkit.autopsy.textextractors.TextExtractor.InitReaderException |
Definition at line 323 of file TranslatedTextViewer.java.
|
private |
Extracts text from the given node
node | Selected node in UI |
IOException | |
InterruptedException | |
org.sleuthkit.autopsy.textextractors.TextExtractor.InitReaderException | |
NoOpenCoreException | |
KeywordSearchModuleException |
Definition at line 283 of file TranslatedTextViewer.java.
References org.sleuthkit.autopsy.corecomponents.DataContentViewerUtility.getDefaultContent().
|
private |
Fetches the appropriate reader for the given file mimetype and configures it to use OCR.
file | File to be read |
ocrEnabled | Determines if the extractor should be configured for OCR |
IOException | |
NoTextReaderFound |
Definition at line 368 of file TranslatedTextViewer.java.
References org.sleuthkit.autopsy.textextractors.TextExtractorFactory.getExtractor(), org.sleuthkit.autopsy.textextractors.TextExtractor.getReader(), org.sleuthkit.autopsy.textextractors.TextExtractorFactory.getStringsExtractor(), org.sleuthkit.autopsy.textextractors.configs.ImageConfig.setOCREnabled(), and org.sleuthkit.autopsy.textextractors.configs.ImageConfig.setOCRLanguages().
|
private |
Pass the translation off to the Translation service provider.
input | Text to be translated |
Definition at line 246 of file TranslatedTextViewer.java.
References org.sleuthkit.autopsy.texttranslation.ui.TranslationContentPanel.display(), org.sleuthkit.autopsy.texttranslation.TextTranslationService.getInstance(), and org.sleuthkit.autopsy.texttranslation.TextTranslationService.translate().
|
private |
Update the extraction loading message depending on the file type.
isImage | Boolean indicating if the selecting node is an image |
Definition at line 208 of file TranslatedTextViewer.java.
References org.sleuthkit.autopsy.texttranslation.ui.TranslationContentPanel.display().
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.