笔 趣 阁 破 解 版2023 v4.18.00版本的 MD5 值为:35c48a89f5572ff5a659afd7c5a81cad
以下内容为反编译后的 e.java 源代码,内容仅作参考
package b.c.a.n.l;
import android.util.Base64;
import androidx.annotation.NonNull;
import b.c.a.n.j.d;
import b.c.a.n.l.n;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class e<Model, Data> implements n<Model, Data> {
public static final String f2099b = "data:image";
public static final String f2100c = ";base64";
public final a<Data> f2101a;
public interface a<Data> {
Class<Data> a();
void b(Data data) throws IOException;
Data c(String str) throws IllegalArgumentException;
}
public static final class b<Data> implements b.c.a.n.j.d<Data> {
public final String s;
public final a<Data> t;
public Data u;
public b(String str, a<Data> aVar) {
this.s = str;
this.t = aVar;
}
@Override
@NonNull
public Class<Data> a() {
return this.t.a();
}
@Override
public void b() {
try {
this.t.b(this.u);
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public void d(@NonNull Priority priority, @NonNull d.a<? super Data> aVar) {
try {
Data c2 = this.t.c(this.s);
this.u = c2;
aVar.e(c2);
} catch (IllegalArgumentException e) {
aVar.c(e);
}
}
@Override
@NonNull
public DataSource getDataSource() {
return DataSource.LOCAL;
}
}
public static final class c<Model> implements o<Model, InputStream> {
public final a<InputStream> f2102a = new a();
public class a implements a<InputStream> {
public a() {
}
@Override
public Class<InputStream> a() {
return InputStream.class;
}
@Override
public void b(InputStream inputStream) throws IOException {
inputStream.close();
}
@Override
public InputStream c(String str) {
if (str.startsWith(e.f2099b)) {
int indexOf = str.indexOf(44);
if (indexOf != -1) {
if (str.substring(0, indexOf).endsWith(e.f2100c)) {
return new ByteArrayInputStream(Base64.decode(str.substring(indexOf + 1), 0));
}
throw new IllegalArgumentException("Not a base64 image data URL.");
}
throw new IllegalArgumentException("Missing comma in data URL.");
}
throw new IllegalArgumentException("Not a valid image data URL.");
}
}
@Override
public void a() {
}
@Override
@NonNull
public n<Model, InputStream> c(@NonNull r rVar) {
return new e(this.f2102a);
}
}
public e(a<Data> aVar) {
this.f2101a = aVar;
}
@Override
public boolean a(@NonNull Model model) {
return model.toString().startsWith(f2099b);
}
@Override
public n.a<Data> b(@NonNull Model model, int i, int i2, @NonNull b.c.a.n.f fVar) {
return new n.a<>(new b.c.a.s.d(model), new b(model.toString(), this.f2101a));
}
}