|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bumptech.glide.load.resource.NullResourceEncoder<T>
T - The type of the resource that will always fail to be encoded.public class NullResourceEncoder<T>
A simple ResourceEncoder that never writes data.
| Constructor Summary | |
|---|---|
NullResourceEncoder()
|
|
| Method Summary | ||
|---|---|---|
boolean |
encode(Resource<T> data,
OutputStream os)
Writes the given data to the given output stream and returns True if the write completed successfully and should be committed. |
|
static
|
get()
Returns a NullResourceEncoder for the given type. |
|
String |
getId()
Returns an ID identifying any transformation this encoder may apply to the given data that will be mixed in to the cache key. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullResourceEncoder()
| Method Detail |
|---|
public static <T> NullResourceEncoder<T> get()
T - The type of data to be written (or in this case not written).
public boolean encode(Resource<T> data,
OutputStream os)
Encoder
encode in interface Encoder<Resource<T>>data - The data to write.os - The OutputStream to write the data to.public String getId()
EncoderIf the encoder does not transform the data in a way that significantly affects the cached result (ie performs no unusual compression or downsampling) an empty string is an appropriate id.
getId in interface Encoder<Resource<T>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||