Data
- The type of data that will be fetched.ResourceType
- The type of intermediate resource that will be decoded within one of the
DecodePath
s.Transcode
- The type of resource that will be returned as the result if the load and one
of the decode paths succeeds.public class LoadPath<Data,ResourceType,Transcode>
extends java.lang.Object
DataFetcher
for a given data class, attempts to
fetch the data and then run it through one or more DecodePath
s.Constructor and Description |
---|
LoadPath(java.lang.Class<Data> dataClass,
java.lang.Class<ResourceType> resourceClass,
java.lang.Class<Transcode> transcodeClass,
java.util.List<DecodePath<Data,ResourceType,Transcode>> decodePaths,
androidx.core.util.Pools.Pool<java.util.List<java.lang.Throwable>> listPool) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<Data> |
getDataClass() |
Resource<Transcode> |
load(DataRewinder<Data> rewinder,
Options options,
int width,
int height,
com.bumptech.glide.load.engine.DecodePath.DecodeCallback<ResourceType> decodeCallback) |
java.lang.String |
toString() |
public LoadPath(java.lang.Class<Data> dataClass, java.lang.Class<ResourceType> resourceClass, java.lang.Class<Transcode> transcodeClass, java.util.List<DecodePath<Data,ResourceType,Transcode>> decodePaths, androidx.core.util.Pools.Pool<java.util.List<java.lang.Throwable>> listPool)
public Resource<Transcode> load(DataRewinder<Data> rewinder, @NonNull Options options, int width, int height, com.bumptech.glide.load.engine.DecodePath.DecodeCallback<ResourceType> decodeCallback) throws GlideException
GlideException
public java.lang.Class<Data> getDataClass()
public java.lang.String toString()
toString
in class java.lang.Object