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<java.awt.image.BufferedImage,T> factory)
Creates a
FileTranslatorFactory instance. |
Modifier and Type | Method and Description |
---|---|
Translator<java.nio.file.Path,T> |
newInstance(java.util.Map<java.lang.String,java.lang.Object> arguments)
Returns a new instance of the
Translator class. |
public FileTranslatorFactory(TranslatorFactory<java.awt.image.BufferedImage,T> factory)
FileTranslatorFactory
instance.factory
- a factory that can process imagepublic Translator<java.nio.file.Path,T> newInstance(java.util.Map<java.lang.String,java.lang.Object> arguments)
Translator
class.newInstance
in interface TranslatorFactory<java.nio.file.Path,T>
arguments
- the configurations for a new Translator
instanceTranslator
class