com.bumptech.glide.load.resource.transcode
Class GifDrawableBytesTranscoder

java.lang.Object
  extended by com.bumptech.glide.load.resource.transcode.GifDrawableBytesTranscoder
All Implemented Interfaces:
ResourceTranscoder<GifDrawable,byte[]>

public class GifDrawableBytesTranscoder
extends Object
implements ResourceTranscoder<GifDrawable,byte[]>

An ResourceTranscoder that converts GifDrawable into bytes by obtaining the original bytes of the GIF from the GifDrawable.


Constructor Summary
GifDrawableBytesTranscoder()
           
 
Method Summary
 String getId()
           
 Resource<byte[]> transcode(Resource<GifDrawable> toTranscode)
          Transcodes the given resource to the new resource type and returns the wew resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifDrawableBytesTranscoder

public GifDrawableBytesTranscoder()
Method Detail

transcode

public Resource<byte[]> transcode(Resource<GifDrawable> toTranscode)
Description copied from interface: ResourceTranscoder
Transcodes the given resource to the new resource type and returns the wew resource.

Specified by:
transcode in interface ResourceTranscoder<GifDrawable,byte[]>
Parameters:
toTranscode - The resource to transcode.

getId

public String getId()
Specified by:
getId in interface ResourceTranscoder<GifDrawable,byte[]>