public class FileDescriptorBitmapDataLoadProvider extends Object implements DataLoadProvider<ParcelFileDescriptor,Bitmap>
DataLoadProvider
that provides classes for decoding and encoding
Bitmap
s from ParcelFileDescriptor
data.Constructor and Description |
---|
FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool,
DecodeFormat decodeFormat) |
Modifier and Type | Method and Description |
---|---|
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. |
public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat)
public ResourceDecoder<File,Bitmap> getCacheDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the disk cache.getCacheDecoder
in interface DataLoadProvider<ParcelFileDescriptor,Bitmap>
public ResourceDecoder<ParcelFileDescriptor,Bitmap> getSourceDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the original data.getSourceDecoder
in interface DataLoadProvider<ParcelFileDescriptor,Bitmap>
public Encoder<ParcelFileDescriptor> getSourceEncoder()
DataLoadProvider
Encoder
to use to write the original data to the disk cache.getSourceEncoder
in interface DataLoadProvider<ParcelFileDescriptor,Bitmap>
public ResourceEncoder<Bitmap> getEncoder()
DataLoadProvider
ResourceEncoder
to use to write the decoded and transformed resource
to the disk cache.getEncoder
in interface DataLoadProvider<ParcelFileDescriptor,Bitmap>