java.io.InputStreamjava.io.File



Project bumptech/glide in file ...main.java.com.bumptech.glide.DataLoadProvider.java (2014-06-30)
@@ -4,7 +4,7 @@ import com.bumptech.glide.load.Encoder;
 import com.bumptech.glide.load.ResourceDecoder;
 import com.bumptech.glide.load.ResourceEncoder;
 
-import java.io.InputStream;
+import java.io.File;
 
 /**
  * @param <T> The type of data the resource will be decoded from.
@@ -12,7 +12,7 @@ import java.io.InputStream;
  */
 public interface DataLoadProvider<T, Z> {
 
-    public ResourceDecoder<InputStream, Z> getCacheDecoder();
+    public ResourceDecoder<File, Z> getCacheDecoder();
 
     public ResourceDecoder<T, Z> getSourceDecoder();
 
Project bumptech/glide in file ...ava.com.bumptech.glide.DrawableRequestBuilder.java (2014-06-30)
@@ -4,6 +4,7 @@ import android.content.Context;
 import android.graphics.Bitmap;
 import android.graphics.drawable.Drawable;
 import android.view.animation.Animation;
+
 import com.bumptech.glide.load.Encoder;
 import com.bumptech.glide.load.ResourceDecoder;
 import com.bumptech.glide.load.ResourceEncoder;
@@ -18,7 +19,7 @@ import com.bumptech.glide.request.DrawableCrossFadeViewAnimation;
 import com.bumptech.glide.request.RequestListener;
 import com.bumptech.glide.request.ViewPropertyAnimation;
 
-import java.io.InputStream;
+import java.io.File;
 
 public class DrawableRequestBuilder<ModelType> extends
         GenericRequestBuilder<ModelType, ImageVideoWrapper, GifBitmapWrapper, Drawable> {
@@ -68,7 +69,7 @@ public class DrawableRequestBuilder<ModelType> extends
 
     @Override
     public DrawableRequestBuilder<ModelType> cacheDecoder(
-            ResourceDecoder<InputStream, GifBitmapWrapper> cacheDecoder) {
+            ResourceDecoder<File, GifBitmapWrapper> cacheDecoder) {
         super.cacheDecoder(cacheDecoder);
         return this;
     }
Project bumptech/glide in file ...lide.load.engine.DefaultResourceRunnerFactory.java (2014-06-30)
@@ -1,8 +1,9 @@
 package com.bumptech.glide.load.engine;
 
 import android.os.Handler;
-import com.bumptech.glide.load.CacheLoader;
+
 import com.bumptech.glide.Priority;
+import com.bumptech.glide.load.CacheLoader;
 import com.bumptech.glide.load.Encoder;
 import com.bumptech.glide.load.ResourceDecoder;
 import com.bumptech.glide.load.ResourceEncoder;
@@ -11,7 +12,7 @@ import com.bumptech.glide.load.data.DataFetcher;
 import com.bumptech.glide.load.engine.cache.DiskCache;
 import com.bumptech.glide.load.resource.transcode.ResourceTranscoder;
 
-import java.io.InputStream;
+import java.io.File;
 import java.util.concurrent.ExecutorService;
 
 class DefaultResourceRunnerFactory implements ResourceRunnerFactory {
@@ -32,7 +33,7 @@ class DefaultResourceRunnerFactory implements ResourceRunnerFactory {
 
     @Override
     public <T, Z, R> ResourceRunner<Z, R> build(EngineKey key, int width, int height,
-            ResourceDecoder<InputStream, Z> cacheDecoder, DataFetcher<T> fetcher, boolean cacheSource,
+            ResourceDecoder<File, Z> cacheDecoder, DataFetcher<T> fetcher, boolean cacheSource,
             Encoder<T> sourceEncoder, ResourceDecoder<T, Z> decoder, Transformation<Z> transformation,
             ResourceEncoder<Z> encoder, ResourceTranscoder<Z, R> transcoder, Priority priority,
             boolean isMemoryCacheable, EngineJobListener listener) {
Project bumptech/glide in file ...in.java.com.bumptech.glide.load.engine.Engine.java (2014-06-30)
@@ -4,6 +4,7 @@ import android.os.Handler;
 import android.os.Looper;
 import android.os.MessageQueue;
 import android.util.Log;
+
 import com.bumptech.glide.Priority;
 import com.bumptech.glide.load.Encoder;
 import com.bumptech.glide.load.Key;
@@ -18,7 +19,7 @@ import com.bumptech.glide.request.ResourceCallback;
 import com.bumptech.glide.util.LogTime;
 import com.bumptech.glide.util.Util;
 
-import java.io.InputStream;
+import java.io.File;
 import java.lang.ref.ReferenceQueue;
 import java.lang.ref.WeakReference;
 import java.util.HashMap;
@@ -96,7 +97,7 @@ public class Engine implements EngineJobListener, MemoryCache.ResourceRemovedLis
      * @param <Z>          The type of the resource that will be decoded.
      * @param <R>          The type of the resource that will be transcoded from the decoded resource.
      */
-    public <T, Z, R> LoadStatus load(int width, int height, ResourceDecoder<InputStream, Z> cacheDecoder,
+    public <T, Z, R> LoadStatus load(int width, int height, ResourceDecoder<File, Z> cacheDecoder,
             DataFetcher<T> fetcher, boolean cacheSource, Encoder<T> sourceEncoder,
             ResourceDecoder<T, Z> decoder, Transformation<Z> transformation, ResourceEncoder<Z> encoder,
             ResourceTranscoder<Z, R> transcoder, Priority priority, boolean isMemoryCacheable, ResourceCallback cb) {
Project bumptech/glide in file ...ptech.glide.load.engine.ResourceRunnerFactory.java (2014-06-30)
@@ -8,7 +8,7 @@ import com.bumptech.glide.load.Transformation;
 import com.bumptech.glide.load.data.DataFetcher;
 import com.bumptech.glide.load.resource.transcode.ResourceTranscoder;
 
-import java.io.InputStream;
+import java.io.File;
 
 interface ResourceRunnerFactory {
     /**
@@ -26,7 +26,7 @@ interface ResourceRunnerFactory {
      * @return
      */
     public <T, Z, R> ResourceRunner<Z, R> build(EngineKey key, int width, int height,
-            ResourceDecoder<InputStream, Z> cacheDecoder, DataFetcher<T> fetcher, boolean cacheSource,
+            ResourceDecoder<File, Z> cacheDecoder, DataFetcher<T> fetcher, boolean cacheSource,
             Encoder<T> sourceEncoder, ResourceDecoder<T, Z> decoder, Transformation<Z> transformation,
             ResourceEncoder<Z> encoder, ResourceTranscoder<Z, R> transcoder, Priority priority,
             boolean isMemoryCacheable, EngineJobListener listener);