com.bumptech.glide.provider
Class EmptyDataLoadProvider<T,Z>

java.lang.Object
  extended by com.bumptech.glide.provider.EmptyDataLoadProvider<T,Z>
Type Parameters:
T - unused data type.
Z - unused resource type.
All Implemented Interfaces:
DataLoadProvider<T,Z>

public class EmptyDataLoadProvider<T,Z>
extends Object
implements DataLoadProvider<T,Z>

A DataLoadProvider that returns null for every class.


Constructor Summary
EmptyDataLoadProvider()
           
 
Method Summary
static
<T,Z> DataLoadProvider<T,Z>
get()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyDataLoadProvider

public EmptyDataLoadProvider()
Method Detail

get

public static <T,Z> DataLoadProvider<T,Z> get()

getCacheDecoder

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

getSourceDecoder

public ResourceDecoder<T,Z> 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<T,Z>

getSourceEncoder

public Encoder<T> 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<T,Z>

getEncoder

public ResourceEncoder<Z> 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<T,Z>