// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.squareup.picasso; import android.graphics.Bitmap; import android.net.Uri; import java.io.IOException; import java.io.InputStream; // Referenced classes of package com.squareup.picasso: // NetworkPolicy public interface Downloader { public static class Response { final Bitmap bitmap; final boolean cached; final long contentLength; final InputStream stream; public Bitmap getBitmap() { return bitmap; } public long getContentLength() { return contentLength; } public InputStream getInputStream() { return stream; } public Response(Bitmap bitmap1, boolean flag) { if (bitmap1 == null) { throw new IllegalArgumentException("Bitmap may not be null."); } else { stream = null; bitmap = bitmap1; cached = flag; contentLength = -1L; return; } } public Response(Bitmap bitmap1, boolean flag, long l) { this(bitmap1, flag); } public Response(InputStream inputstream, boolean flag) { this(inputstream, flag, -1L); } public Response(InputStream inputstream, boolean flag, long l) { if (inputstream == null) { throw new IllegalArgumentException("Stream may not be null."); } else { stream = inputstream; bitmap = null; cached = flag; contentLength = l; return; } } } public static class ResponseException extends IOException { final boolean localCacheOnly; final int responseCode; public ResponseException(String s, int i, int j) { super(s); localCacheOnly = NetworkPolicy.isOfflineOnly(i); responseCode = j; } } public abstract Response load(Uri uri, int i) throws IOException; public abstract void shutdown(); }