-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.Encoder,com.mobwith.imgmodule.load.ResourceEncoder
public class GifDrawableEncoder implements ResourceEncoder<GifDrawable>
Writes the original bytes of a com.mobwith.imgmodule.load.resource.gif.GifDrawable to an java.io.OutputStream.
-
-
Method Summary
Modifier and Type Method Description EncodeStrategygetEncodeStrategy(@NonNull() Options options)booleanencode(@NonNull() Resource<GifDrawable> data, @NonNull() File file, @NonNull() Options options)Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed. -
-
Method Detail
-
getEncodeStrategy
@NonNull() EncodeStrategy getEncodeStrategy(@NonNull() Options options)
-
encode
boolean encode(@NonNull() Resource<GifDrawable> data, @NonNull() File file, @NonNull() Options options)
Writes the given data to the given output stream and returns True if the write completedsuccessfully and should be committed.
- Parameters:
data- The data to write.file- The file to write the data to.options- The set of options to apply when encoding.
-
-
-
-