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

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

public class StreamBitmapDataLoadProvider
extends Object
implements DataLoadProvider<InputStream,Bitmap>

An DataLoadProvider that provides decoders and encoders for decoding and caching Bitmaps using InputStream data.


Constructor Summary
StreamBitmapDataLoadProvider(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<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamBitmapDataLoadProvider

public StreamBitmapDataLoadProvider(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<InputStream,Bitmap>

getSourceDecoder

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

getSourceEncoder

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