T - the type of the outputpublic class FileTranslatorFactory<T> extends java.lang.Object implements TranslatorFactory<java.nio.file.Path,T>
Translator that can process image from a file path.| Constructor and Description |
|---|
FileTranslatorFactory(TranslatorFactory<Image,T> factory)
Creates a
FileTranslatorFactory instance. |
| Modifier and Type | Method and Description |
|---|---|
Translator<java.nio.file.Path,T> |
newInstance(Model model,
java.util.Map<java.lang.String,?> arguments)
Returns a new instance of the
Translator class. |
public FileTranslatorFactory(TranslatorFactory<Image,T> factory)
FileTranslatorFactory instance.factory - a factory that can process imagepublic Translator<java.nio.file.Path,T> newInstance(Model model, java.util.Map<java.lang.String,?> arguments) throws TranslateException
Translator class.newInstance in interface TranslatorFactory<java.nio.file.Path,T>model - the Model that uses the Translatorarguments - the configurations for a new Translator instanceTranslator classTranslateException - if failed to create Translator instance