LoanStar v1.0.2版本的 MD5 值为:1398d05dc1f37bf19dbc6092ea5b471d
以下内容为反编译后的 e.java 源代码,内容仅作参考
package f.a.a.n.o;
import android.util.Base64;
import f.a.a.n.m.d;
import f.a.a.n.o.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 f.a.a.n.m.d<Data> {
public final String b;
public final a<Data> f2307c;
public Data f2308d;
public b(String str, a<Data> aVar) {
this.b = str;
this.f2307c = aVar;
}
@Override
public Class<Data> a() {
return this.f2307c.a();
}
@Override
public void b() {
try {
this.f2307c.b(this.f2308d);
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public f.a.a.n.a e() {
return f.a.a.n.a.LOCAL;
}
@Override
public void f(f.a.a.g gVar, d.a<? super Data> aVar) {
try {
Data c2 = this.f2307c.c(this.b);
this.f2308d = 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(this);
public class a implements a<InputStream> {
public a(c cVar) {
}
@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, f.a.a.n.i iVar) {
return new n.a<>(new f.a.a.s.b(model), new b(model.toString(), this.a));
}
@Override
public boolean b(Model model) {
return model.toString().startsWith("data:image");
}
}