T - The base type of the decoder this factory will produce.public class CompatDecoderFactory<T> extends Object implements DecoderFactory<T>
| Constructor and Description |
|---|
CompatDecoderFactory(Class<? extends T> clazz)
Construct a factory for the given class.
|
CompatDecoderFactory(Class<? extends T> clazz,
Bitmap.Config bitmapConfig)
Construct a factory for the given class.
|
public CompatDecoderFactory(@NonNull Class<? extends T> clazz)
clazz - a class that implements ImageDecoder or ImageRegionDecoder.public CompatDecoderFactory(@NonNull Class<? extends T> clazz, Bitmap.Config bitmapConfig)
Bitmap.Config instance.clazz - a class that implements ImageDecoder or ImageRegionDecoder.bitmapConfig - bitmap configuration to be used when loading images.public T make() throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
DecoderFactoryT.make in interface DecoderFactory<T>IllegalAccessException - if the factory class cannot be instantiated.InstantiationException - if the factory class cannot be instantiated.NoSuchMethodException - if the factory class cannot be instantiated.InvocationTargetException - if the factory class cannot be instantiated.