钱能钱包 v3.10.2版本的 MD5 值为:339a4b585ef2aa3bfaf7e4baeb254647
以下内容为反编译后的 e.java 源代码,内容仅作参考
package e.a.a.m.k;
import android.util.Base64;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import e.a.a.m.i.d;
import e.a.a.m.k.n;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class e<Model, Data> implements n<Model, Data> {
public final a<Data> a;
public interface a<Data> {
Class<Data> a();
void b(Data data);
Data c(String str);
}
public static final class b<Data> implements e.a.a.m.i.d<Data> {
public final String a;
public final a<Data> f6685b;
public Data f6686c;
public b(String str, a<Data> aVar) {
this.a = str;
this.f6685b = aVar;
}
@Override
public Class<Data> a() {
return this.f6685b.a();
}
@Override
public void b() {
try {
this.f6685b.b(this.f6686c);
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public DataSource e() {
return DataSource.LOCAL;
}
@Override
public void f(Priority priority, d.a<? super Data> aVar) {
try {
Data c2 = this.f6685b.c(this.a);
this.f6686c = c2;
aVar.d(c2);
} catch (IllegalArgumentException e2) {
aVar.c(e2);
}
}
}
public static final class c<Model> implements o<Model, InputStream> {
public final a<InputStream> a = new a();
public class a implements a<InputStream> {
public a() {
}
@Override
public Class<InputStream> a() {
return InputStream.class;
}
@Override
public void b(InputStream inputStream) {
inputStream.close();
}
@Override
public InputStream c(String str) {
if (str.startsWith("data:image")) {
int indexOf = str.indexOf(44);
if (indexOf != -1) {
if (str.substring(0, indexOf).endsWith(";base64")) {
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 n<Model, InputStream> b(r rVar) {
return new e(this.a);
}
}
public e(a<Data> aVar) {
this.a = aVar;
}
@Override
public n.a<Data> a(Model model, int i2, int i3, e.a.a.m.e eVar) {
return new n.a<>(new e.a.a.r.c(model), new b(model.toString(), this.a));
}
@Override
public boolean b(Model model) {
return model.toString().startsWith("data:image");
}
}