19fc12334a7d14347cd6951d0653264b2597bd3a0Sam Juddpackage com.bumptech.glide.load; 29fc12334a7d14347cd6951d0653264b2597bd3a0Sam Judd 3b7c7c2b2505f996dbda219faeb0d08dc1c9982d7Sam Juddimport com.bumptech.glide.load.engine.Resource; 4e52ac307639fca7a22cd5bc3e05ea423b2e60264Sam Judd 527eb05702fd4531d6974640c62df1d569629edb6Sam Juddimport java.io.IOException; 627eb05702fd4531d6974640c62df1d569629edb6Sam Judd 70e605e6c38a673ba792606ce559db054a776f5cdSam Judd/** 80e605e6c38a673ba792606ce559db054a776f5cdSam Judd * An interface for decoding resources 90e605e6c38a673ba792606ce559db054a776f5cdSam Judd * @param <T> The type the resource will be decoded from (File, InputStream etc). 100e605e6c38a673ba792606ce559db054a776f5cdSam Judd * @param <Z> The type of the decoded resource (Bitmap, Drawable etc:w 110e605e6c38a673ba792606ce559db054a776f5cdSam Judd */ 120e605e6c38a673ba792606ce559db054a776f5cdSam Juddpublic interface ResourceDecoder<T, Z> { 13e52ac307639fca7a22cd5bc3e05ea423b2e60264Sam Judd 1427eb05702fd4531d6974640c62df1d569629edb6Sam Judd public Resource<Z> decode(T source, int width, int height) throws IOException; 15f9ccb9c6c3f50832993459b83746567dfeb6acbaSam Judd 16f9ccb9c6c3f50832993459b83746567dfeb6acbaSam Judd public String getId(); 17e52ac307639fca7a22cd5bc3e05ea423b2e60264Sam Judd} 18