com.bumptech.glide.provider
Interface DataLoadProvider<T,Z>

Type Parameters:
T - The type of data the resource will be decoded from.
Z - The type of resource that will be decoded.
All Known Subinterfaces:
LoadProvider<A,T,Z,R>
All Known Implementing Classes:
ChildLoadProvider, EmptyDataLoadProvider, FileDescriptorBitmapDataLoadProvider, FixedLoadProvider, GifDrawableLoadProvider, ImageVideoDataLoadProvider, ImageVideoGifDrawableLoadProvider, StreamBitmapDataLoadProvider, StreamFileDataLoadProvider

public interface DataLoadProvider<T,Z>

A load provider that provides the necessary encoders and decoders to decode a specific type of resource from a specific type of data.


Method Summary
 ResourceDecoder<File,Z> getCacheDecoder()
          Returns the ResourceDecoder to use to decode the resource from the disk cache.
 ResourceEncoder<Z> getEncoder()
          Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
 ResourceDecoder<T,Z> getSourceDecoder()
          Returns the ResourceDecoder to use to decode the resource from the original data.
 Encoder<T> getSourceEncoder()
          Returns the Encoder to use to write the original data to the disk cache.
 

Method Detail

getCacheDecoder

ResourceDecoder<File,Z> getCacheDecoder()
Returns the ResourceDecoder to use to decode the resource from the disk cache.


getSourceDecoder

ResourceDecoder<T,Z> getSourceDecoder()
Returns the ResourceDecoder to use to decode the resource from the original data.


getSourceEncoder

Encoder<T> getSourceEncoder()
Returns the Encoder to use to write the original data to the disk cache.


getEncoder

ResourceEncoder<Z> getEncoder()
Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.