com.bumptech.glide.load.resource.file
Class StreamFileDataLoadProvider

java.lang.Object
  extended by com.bumptech.glide.load.resource.file.StreamFileDataLoadProvider
All Implemented Interfaces:
DataLoadProvider<InputStream,File>

public class StreamFileDataLoadProvider
extends Object
implements DataLoadProvider<InputStream,File>

An DataLoadProvider that provides encoders and decoders for for obtaining a cache file from InputStream data.


Constructor Summary
StreamFileDataLoadProvider()
           
 
Method Summary
 ResourceDecoder<File,File> getCacheDecoder()
          Returns the ResourceDecoder to use to decode the resource from the disk cache.
 ResourceEncoder<File> getEncoder()
          Returns the ResourceEncoder to use to write the decoded and transformed resource to the disk cache.
 ResourceDecoder<InputStream,File> 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

StreamFileDataLoadProvider

public StreamFileDataLoadProvider()
Method Detail

getCacheDecoder

public ResourceDecoder<File,File> 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,File>

getSourceDecoder

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

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,File>

getEncoder

public ResourceEncoder<File> 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,File>