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

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

public class ImageVideoDataLoadProvider
extends Object
implements DataLoadProvider<ImageVideoWrapper,Bitmap>

A DataLoadProvider for loading either an InputStream or an ParcelFileDescriptor as an Bitmap.


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

Constructor Detail

ImageVideoDataLoadProvider

public ImageVideoDataLoadProvider(BitmapPool bitmapPool)
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<ImageVideoWrapper,Bitmap>

getSourceDecoder

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

getSourceEncoder

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