public class ImageVideoDataLoadProvider extends Object implements DataLoadProvider<ImageVideoWrapper,Bitmap>
| Constructor and Description |
|---|
ImageVideoDataLoadProvider(DataLoadProvider<InputStream,Bitmap> streamBitmapProvider,
DataLoadProvider<ParcelFileDescriptor,Bitmap> fileDescriptorBitmapProvider) |
| 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<ImageVideoWrapper,Bitmap> |
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. |
public ImageVideoDataLoadProvider(DataLoadProvider<InputStream,Bitmap> streamBitmapProvider, DataLoadProvider<ParcelFileDescriptor,Bitmap> fileDescriptorBitmapProvider)
public ResourceDecoder<File,Bitmap> getCacheDecoder()
DataLoadProviderResourceDecoder to use to decode the resource from the disk cache.getCacheDecoder in interface DataLoadProvider<ImageVideoWrapper,Bitmap>public ResourceDecoder<ImageVideoWrapper,Bitmap> getSourceDecoder()
DataLoadProviderResourceDecoder to use to decode the resource from the original data.getSourceDecoder in interface DataLoadProvider<ImageVideoWrapper,Bitmap>public Encoder<ImageVideoWrapper> getSourceEncoder()
DataLoadProviderEncoder to use to write the original data to the disk cache.getSourceEncoder in interface DataLoadProvider<ImageVideoWrapper,Bitmap>public ResourceEncoder<Bitmap> getEncoder()
DataLoadProviderResourceEncoder to use to write the decoded and transformed resource
to the disk cache.getEncoder in interface DataLoadProvider<ImageVideoWrapper,Bitmap>