|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bumptech.glide.load.resource.NullEncoder<T>
T
- type discarded by this Encoderpublic class NullEncoder<T>
A simple Encoder
that never writes data.
Constructor Summary | |
---|---|
NullEncoder()
|
Method Summary | ||
---|---|---|
boolean |
encode(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 an Encoder for the given data 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 NullEncoder()
Method Detail |
---|
public static <T> Encoder<T> get()
T
- The type of data to be written (or not in this case).public boolean encode(T data, OutputStream os)
Encoder
encode
in interface Encoder<T>
data
- The data to write.os
- The OutputStream to write the data to.public String getId()
Encoder
If 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<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |