com.bumptech.glide.load.resource.bitmap
Class FileDescriptorBitmapDataLoadProvider

java.lang.Object
  extended by com.bumptech.glide.load.resource.bitmap.FileDescriptorBitmapDataLoadProvider
All Implemented Interfaces:
DataLoadProvider<ParcelFileDescriptor,Bitmap>

public class FileDescriptorBitmapDataLoadProvider
extends Object
implements DataLoadProvider<ParcelFileDescriptor,Bitmap>

An DataLoadProvider that provides classes for decoding and encoding Bitmaps from ParcelFileDescriptor data.


Constructor Summary
FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat)
           
 
Method Summary
 ResourceDecoder<File,Bitmap> getCacheDecoder()
          Returns the ResourceDecoder to use to decode the resource from the disk cache.
 ResourceEncoder<Bitmap> getEncoder()
          Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
 ResourceDecoder<ParcelFileDescriptor,Bitmap> getSourceDecoder()
          Returns the ResourceDecoder to use to decode the resource from the original data.
 Encoder<ParcelFileDescriptor> 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

FileDescriptorBitmapDataLoadProvider

public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool,
                                            DecodeFormat decodeFormat)
Method Detail

getCacheDecoder

public ResourceDecoder<File,Bitmap> 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<ParcelFileDescriptor,Bitmap>

getSourceDecoder

public ResourceDecoder<ParcelFileDescriptor,Bitmap> 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<ParcelFileDescriptor,Bitmap>

getSourceEncoder

public Encoder<ParcelFileDescriptor> 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<ParcelFileDescriptor,Bitmap>

getEncoder

public ResourceEncoder<Bitmap> 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<ParcelFileDescriptor,Bitmap>