Go to the documentation of this file.
19package org.sleuthkit.autopsy.texttranslation;
21import java.util.Collection;
22import java.util.Collections;
23import java.util.Optional;
24import org.openide.util.Lookup;
25import org.sleuthkit.autopsy.core.UserPreferences;
26import javax.annotation.concurrent.GuardedBy;
36 private final Collection<? extends TextTranslator>
translators;
44 updateSelectedTranslator();
55 synchronized void updateSelectedTranslator() {
58 if (translator.getName().equals(translatorName)) {
85 "Could not find a TextTranslator service provider");
99 if (translator.getName().equals(translatorName)) {
103 throw new NoServiceProviderException(
104 "Could not find the specified TextTranslator service provider: " + translatorName);
112 Collection<? extends TextTranslator> getTranslators() {
113 return Collections.unmodifiableCollection(
translators);
static String getTextTranslatorName()
final Collection<? extends TextTranslator > translators
synchronized int getMaxTextChars()
synchronized String translate(String input)
Optional< TextTranslator > selectedTranslator
static final TextTranslationService tts
synchronized boolean hasProvider()
static TextTranslationService getInstance()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.