|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bumptech.glide.provider.ChildLoadProvider<A,T,Z,R>
A
- The type of the model the resource will be loaded from.T
- The type of the data that will be retrieved for the model.Z
- The type of the resource that will be decoded from the data.R
- The type of the resource that will be transcoded from the decoded resource.public class ChildLoadProvider<A,T,Z,R>
A LoadProvider
that returns classes preferentially from those set on it but
that also defaults to a wrapped LoadProvider
when a particular class is not set.
Constructor Summary | |
---|---|
ChildLoadProvider(LoadProvider<A,T,Z,R> parent)
|
Method Summary | |
---|---|
ChildLoadProvider<A,T,Z,R> |
clone()
|
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. |
ModelLoader<A,T> |
getModelLoader()
Returns the ModelLoader to convert from the given model to a data type. |
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. |
ResourceTranscoder<Z,R> |
getTranscoder()
Returns the ResourceTranscoder to convert from the decoded
and transformed resource into the transcoded resource. |
void |
setCacheDecoder(ResourceDecoder<File,Z> cacheDecoder)
Sets the ResourceDecoder to use for decoding the resource from the disk cache. |
void |
setEncoder(ResourceEncoder<Z> encoder)
Sets the ResourceEncoder to use to write the decoded and transformed resource to
the disk cache. |
void |
setSourceDecoder(ResourceDecoder<T,Z> sourceDecoder)
Sets the ResourceDecoder to use to decoding the resource from the original data. |
void |
setSourceEncoder(Encoder<T> sourceEncoder)
Sets the Encoder to use to write the original data to the disk cache. |
void |
setTranscoder(ResourceTranscoder<Z,R> transcoder)
Sets the ResourceTranscoder to use to transcode the decoded
resource. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildLoadProvider(LoadProvider<A,T,Z,R> parent)
Method Detail |
---|
public ModelLoader<A,T> getModelLoader()
LoadProvider
ModelLoader
to convert from the given model to a data type.
getModelLoader
in interface LoadProvider<A,T,Z,R>
public void setCacheDecoder(ResourceDecoder<File,Z> cacheDecoder)
ResourceDecoder
to use for decoding the resource from the disk cache.
cacheDecoder
- The decoder to use.public void setSourceDecoder(ResourceDecoder<T,Z> sourceDecoder)
ResourceDecoder
to use to decoding the resource from the original data.
sourceDecoder
- The decoder to use.public void setEncoder(ResourceEncoder<Z> encoder)
ResourceEncoder
to use to write the decoded and transformed resource to
the disk cache.
encoder
- The encoder to use.public void setTranscoder(ResourceTranscoder<Z,R> transcoder)
ResourceTranscoder
to use to transcode the decoded
resource.
transcoder
- The transcoder to use.public void setSourceEncoder(Encoder<T> sourceEncoder)
Encoder
to use to write the original data to the disk cache.
sourceEncoder
- The encoder to use.public ResourceDecoder<File,Z> getCacheDecoder()
ResourceDecoder
to use to decode the resource from the disk cache.
getCacheDecoder
in interface DataLoadProvider<T,Z>
public ResourceDecoder<T,Z> getSourceDecoder()
ResourceDecoder
to use to decode the resource from the original data.
getSourceDecoder
in interface DataLoadProvider<T,Z>
public Encoder<T> getSourceEncoder()
Encoder
to use to write the original data to the disk cache.
getSourceEncoder
in interface DataLoadProvider<T,Z>
public ResourceEncoder<Z> getEncoder()
ResourceEncoder
to use to write the decoded and transformed resource
to the disk cache.
getEncoder
in interface DataLoadProvider<T,Z>
public ResourceTranscoder<Z,R> getTranscoder()
ResourceTranscoder
to convert from the decoded
and transformed resource into the transcoded resource.
getTranscoder
in interface LoadProvider<A,T,Z,R>
public ChildLoadProvider<A,T,Z,R> clone()
clone
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |