com.bumptech.glide.load.resource.gif
Class GifDrawableLoadProvider

java.lang.Object
  extended by com.bumptech.glide.load.resource.gif.GifDrawableLoadProvider
All Implemented Interfaces:
DataLoadProvider<InputStream,GifDrawable>

public class GifDrawableLoadProvider
extends Object
implements DataLoadProvider<InputStream,GifDrawable>

An DataLoadProvider that loads an InputStream into GifDrawable that can be used to display an animated GIF.


Constructor Summary
GifDrawableLoadProvider(Context context, BitmapPool bitmapPool)
           
 
Method Summary
 ResourceDecoder<File,GifDrawable> getCacheDecoder()
          Returns the ResourceDecoder to use to decode the resource from the disk cache.
 ResourceEncoder<GifDrawable> getEncoder()
          Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
 ResourceDecoder<InputStream,GifDrawable> getSourceDecoder()
          Returns the ResourceDecoder to use to decode the resource from the original data.
 Encoder<InputStream> 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

GifDrawableLoadProvider

public GifDrawableLoadProvider(Context context,
                               BitmapPool bitmapPool)
Method Detail

getCacheDecoder

public ResourceDecoder<File,GifDrawable> 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<InputStream,GifDrawable>

getSourceDecoder

public ResourceDecoder<InputStream,GifDrawable> 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<InputStream,GifDrawable>

getSourceEncoder

public Encoder<InputStream> 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<InputStream,GifDrawable>

getEncoder

public ResourceEncoder<GifDrawable> 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<InputStream,GifDrawable>