Class GifDrawableEncoder
java.lang.Object
com.bumptech.glide.load.resource.gif.GifDrawableEncoder
- All Implemented Interfaces:
Encoder<Resource<GifDrawable>>,ResourceEncoder<GifDrawable>
Writes the original bytes of a
GifDrawable to an
OutputStream.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanencode(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.getEncodeStrategy(Options options)
-
Constructor Details
-
GifDrawableEncoder
public GifDrawableEncoder()
-
-
Method Details
-
getEncodeStrategy
- Specified by:
getEncodeStrategyin interfaceResourceEncoder<GifDrawable>
-
encode
public boolean encode(@NonNull Resource<GifDrawable> data, @NonNull File file, @NonNull Options options) Description copied from interface:EncoderWrites the given data to the given output stream and returns True if the write completed successfully and should be committed.- Specified by:
encodein interfaceEncoder<Resource<GifDrawable>>- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-