jimu-decompiled/sources/com/squareup/picasso/Downloader.java
2025-05-13 19:24:51 +02:00

54 lines
1.3 KiB
Java

package com.squareup.picasso;
import android.graphics.Bitmap;
import android.net.Uri;
import java.io.IOException;
import java.io.InputStream;
/* loaded from: classes.dex */
public interface Downloader {
public static class Response {
final InputStream a;
final Bitmap b;
final boolean c;
final long d;
public Response(InputStream inputStream, boolean z, long j) {
if (inputStream == null) {
throw new IllegalArgumentException("Stream may not be null.");
}
this.a = inputStream;
this.b = null;
this.c = z;
this.d = j;
}
@Deprecated
public Bitmap a() {
return this.b;
}
public long b() {
return this.d;
}
public InputStream c() {
return this.a;
}
}
public static class ResponseException extends IOException {
final boolean localCacheOnly;
final int responseCode;
public ResponseException(String str, int i, int i2) {
super(str);
this.localCacheOnly = NetworkPolicy.isOfflineOnly(i);
this.responseCode = i2;
}
}
Response a(Uri uri, int i) throws IOException;
}