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