Class GifDrawableEncoder
- java.lang.Object
-
- com.bumptech.glide.load.resource.gif.GifDrawableEncoder
-
- All Implemented Interfaces:
Encoder<Resource<GifDrawable>>,ResourceEncoder<GifDrawable>
public class GifDrawableEncoder extends java.lang.Object implements ResourceEncoder<GifDrawable>
Writes the original bytes of aGifDrawableto anOutputStream.
-
-
Constructor Summary
Constructors Constructor Description GifDrawableEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanencode(Resource<GifDrawable> data, java.io.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.EncodeStrategygetEncodeStrategy(Options options)
-
-
-
Method Detail
-
getEncodeStrategy
@NonNull public EncodeStrategy getEncodeStrategy(@NonNull Options options)
- Specified by:
getEncodeStrategyin interfaceResourceEncoder<GifDrawable>
-
encode
public boolean encode(@NonNull Resource<GifDrawable> data, @NonNull java.io.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.
-
-