public class GifDrawableLoadProvider extends Object implements DataLoadProvider<InputStream,GifDrawable>
DataLoadProvider that loads an InputStream into
GifDrawable that can be used to display an animated GIF.| Constructor and Description |
|---|
GifDrawableLoadProvider(Context context,
BitmapPool bitmapPool) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public GifDrawableLoadProvider(Context context, BitmapPool bitmapPool)
public ResourceDecoder<File,GifDrawable> getCacheDecoder()
DataLoadProviderResourceDecoder to use to decode the resource from the disk cache.getCacheDecoder in interface DataLoadProvider<InputStream,GifDrawable>public ResourceDecoder<InputStream,GifDrawable> getSourceDecoder()
DataLoadProviderResourceDecoder to use to decode the resource from the original data.getSourceDecoder in interface DataLoadProvider<InputStream,GifDrawable>public Encoder<InputStream> getSourceEncoder()
DataLoadProviderEncoder to use to write the original data to the disk cache.getSourceEncoder in interface DataLoadProvider<InputStream,GifDrawable>public ResourceEncoder<GifDrawable> getEncoder()
DataLoadProviderResourceEncoder to use to write the decoded and transformed resource
to the disk cache.getEncoder in interface DataLoadProvider<InputStream,GifDrawable>