Package 

Class CompatDecoderFactory

  • All Implemented Interfaces:
    com.pdfview.subsamplincscaleimageview.decoder.DecoderFactory

    
    public class CompatDecoderFactory<T>
     implements DecoderFactory<T>
                        

    Compatibility factory to instantiate decoders with empty public constructors.

    • Method Summary

      Modifier and Type Method Description
      T make() Produce a new instance of a decoder with type T.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompatDecoderFactory

        CompatDecoderFactory(Class<out T> clazz)
        Construct a factory for the given class.
        Parameters:
        clazz - a class that implements ImageDecoder or ImageRegionDecoder.
      • CompatDecoderFactory

        CompatDecoderFactory(Class<out T> clazz, Bitmap.Config bitmapConfig)
        Construct a factory for the given class.
        Parameters:
        clazz - a class that implements ImageDecoder or ImageRegionDecoder.
        bitmapConfig - bitmap configuration to be used when loading images.
    • Method Detail

      • make

        @NonNull() T make()

        Produce a new instance of a decoder with type T.