51黑料 v2.0版本的 MD5 值为:cc00ad70c70d95f274d15d4654c16262
以下内容为反编译后的 e.java 源代码,内容仅作参考
package g.c.a.m.w;
import android.util.Base64;
import androidx.annotation.NonNull;
import g.c.a.m.u.d;
import g.c.a.m.w.n;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Objects;
public final class e<Model, Data> implements n<Model, Data> {
public final a<Data> a;
public interface a<Data> {
}
public static final class b<Data> implements g.c.a.m.u.d<Data> {
public final String c;
public final a<Data> f2387d;
public Data f2388e;
public b(String str, a<Data> aVar) {
this.c = str;
this.f2387d = aVar;
}
@Override
@NonNull
public Class<Data> a() {
Objects.requireNonNull((c.a) this.f2387d);
return InputStream.class;
}
@Override
public void b() {
try {
a<Data> aVar = this.f2387d;
Data data = this.f2388e;
Objects.requireNonNull((c.a) aVar);
((InputStream) data).close();
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public void d(@NonNull g.c.a.f fVar, @NonNull d.a<? super Data> aVar) {
try {
?? r2 = (Data) ((c.a) this.f2387d).a(this.c);
this.f2388e = r2;
aVar.e(r2);
} catch (IllegalArgumentException e2) {
aVar.c(e2);
}
}
@Override
@NonNull
public g.c.a.m.a getDataSource() {
return g.c.a.m.a.LOCAL;
}
}
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) {
}
public Object a(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
@NonNull
public n<Model, InputStream> b(@NonNull r rVar) {
return new e(this.a);
}
}
public e(a<Data> aVar) {
this.a = aVar;
}
@Override
public boolean a(@NonNull Model model) {
return model.toString().startsWith("data:image");
}
@Override
public n.a<Data> b(@NonNull Model model, int i2, int i3, @NonNull g.c.a.m.p pVar) {
return new n.a<>(new g.c.a.r.d(model), new b(model.toString(), this.a));
}
}