T
- The base type of the decoder this factory will produce.public class CompatDecoderFactory<T> extends java.lang.Object implements DecoderFactory<T>
Constructor and Description |
---|
CompatDecoderFactory(java.lang.Class<? extends T> clazz)
Construct a factory for the given class.
|
CompatDecoderFactory(java.lang.Class<? extends T> clazz,
android.graphics.Bitmap.Config bitmapConfig)
Construct a factory for the given class.
|
Modifier and Type | Method and Description |
---|---|
T |
make()
Produce a new instance of a decoder with type
T . |
public CompatDecoderFactory(@NonNull java.lang.Class<? extends T> clazz)
clazz
- a class that implements ImageDecoder
or ImageRegionDecoder
.public CompatDecoderFactory(@NonNull java.lang.Class<? extends T> clazz, android.graphics.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 java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
DecoderFactory
T
.make
in interface DecoderFactory<T>
java.lang.IllegalAccessException
- if the factory class cannot be instantiated.java.lang.InstantiationException
- if the factory class cannot be instantiated.java.lang.NoSuchMethodException
- if the factory class cannot be instantiated.java.lang.reflect.InvocationTargetException
- if the factory class cannot be instantiated.