com.bumptech.glide.load.resource.gifbitmap
Class ImageVideoGifDrawableLoadProvider

java.lang.Object
  extended by com.bumptech.glide.load.resource.gifbitmap.ImageVideoGifDrawableLoadProvider
All Implemented Interfaces:
DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>

public class ImageVideoGifDrawableLoadProvider
extends Object
implements DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>

An DataLoadProvider that can load either an GifDrawable or an Bitmap from either an InputStream or an ParcelFileDescriptor.


Constructor Summary
ImageVideoGifDrawableLoadProvider(DataLoadProvider<ImageVideoWrapper,Bitmap> bitmapProvider, DataLoadProvider<InputStream,GifDrawable> gifProvider, BitmapPool bitmapPool)
           
 
Method Summary
 ResourceDecoder<File,GifBitmapWrapper> getCacheDecoder()
          Returns the ResourceDecoder to use to decode the resource from the disk cache.
 ResourceEncoder<GifBitmapWrapper> getEncoder()
          Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
 ResourceDecoder<ImageVideoWrapper,GifBitmapWrapper> getSourceDecoder()
          Returns the ResourceDecoder to use to decode the resource from the original data.
 Encoder<ImageVideoWrapper> getSourceEncoder()
          Returns the Encoder to use to write the original data to the disk cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageVideoGifDrawableLoadProvider

public ImageVideoGifDrawableLoadProvider(DataLoadProvider<ImageVideoWrapper,Bitmap> bitmapProvider,
                                         DataLoadProvider<InputStream,GifDrawable> gifProvider,
                                         BitmapPool bitmapPool)
Method Detail

getCacheDecoder

public ResourceDecoder<File,GifBitmapWrapper> getCacheDecoder()
Description copied from interface: DataLoadProvider
Returns the ResourceDecoder to use to decode the resource from the disk cache.

Specified by:
getCacheDecoder in interface DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>

getSourceDecoder

public ResourceDecoder<ImageVideoWrapper,GifBitmapWrapper> getSourceDecoder()
Description copied from interface: DataLoadProvider
Returns the ResourceDecoder to use to decode the resource from the original data.

Specified by:
getSourceDecoder in interface DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>

getSourceEncoder

public Encoder<ImageVideoWrapper> getSourceEncoder()
Description copied from interface: DataLoadProvider
Returns the Encoder to use to write the original data to the disk cache.

Specified by:
getSourceEncoder in interface DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>

getEncoder

public ResourceEncoder<GifBitmapWrapper> getEncoder()
Description copied from interface: DataLoadProvider
Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.

Specified by:
getEncoder in interface DataLoadProvider<ImageVideoWrapper,GifBitmapWrapper>