public class StreamBitmapDataLoadProvider extends Object implements DataLoadProvider<InputStream,Bitmap>
DataLoadProvider
that provides decoders and encoders for decoding and caching
Bitmap
s using InputStream
data.Constructor and Description |
---|
StreamBitmapDataLoadProvider(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<InputStream,Bitmap> |
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 StreamBitmapDataLoadProvider(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<InputStream,Bitmap>
public ResourceDecoder<InputStream,Bitmap> getSourceDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the original data.getSourceDecoder
in interface DataLoadProvider<InputStream,Bitmap>
public Encoder<InputStream> getSourceEncoder()
DataLoadProvider
Encoder
to use to write the original data to the disk cache.getSourceEncoder
in interface DataLoadProvider<InputStream,Bitmap>
public ResourceEncoder<Bitmap> getEncoder()
DataLoadProvider
ResourceEncoder
to use to write the decoded and transformed resource
to the disk cache.getEncoder
in interface DataLoadProvider<InputStream,Bitmap>