public class GifDrawableEncoder extends Object implements ResourceEncoder<GifDrawable>
GifDrawable
to an
OutputStream
.Constructor and Description |
---|
GifDrawableEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
encode(Resource<GifDrawable> data,
File file,
Options options)
Writes the given data to the given output stream and returns True if the write completed
successfully and should be committed.
|
EncodeStrategy |
getEncodeStrategy(Options options) |
@NonNull public EncodeStrategy getEncodeStrategy(@NonNull Options options)
getEncodeStrategy
in interface ResourceEncoder<GifDrawable>
public boolean encode(@NonNull Resource<GifDrawable> data, @NonNull File file, @NonNull Options options)
Encoder
encode
in interface Encoder<Resource<GifDrawable>>
data
- The data to write.file
- The File to write the data to.options
- The put of options to apply when encoding.