Home | History | Annotate | Download | only in load
      1 package com.bumptech.glide.load;
      2 
      3 import com.bumptech.glide.load.engine.Resource;
      4 
      5 import java.io.IOException;
      6 
      7 /**
      8  * An interface for decoding resources
      9  * @param <T> The type the resource will be decoded from (File, InputStream etc).
     10  * @param <Z> The type of the decoded resource (Bitmap, Drawable etc:w
     11  */
     12 public interface ResourceDecoder<T, Z> {
     13 
     14     public Resource<Z> decode(T source, int width, int height) throws IOException;
     15 
     16     public String getId();
     17 }
     18