1package com.bumptech.glide.load; 2 3import com.bumptech.glide.load.engine.Resource; 4 5import 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 */ 12public 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