米多多 v3.0.1版本的 MD5 值为:f69e79dbe1787218a397ad907fb8f3ab
以下内容为反编译后的 e.java 源代码,内容仅作参考
package c.c.a.l.k;
import android.util.Base64;
import c.c.a.l.i.d;
import c.c.a.l.k.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 final a<Data> f3672a;
public interface a<Data> {
Class<Data> a();
void b(Data data);
Data decode(String str);
}
public static final class b<Data> implements c.c.a.l.i.d<Data> {
public final String f3673a;
public final a<Data> f3674b;
public Data f3675c;
public b(String str, a<Data> aVar) {
this.f3673a = str;
this.f3674b = aVar;
}
@Override
public Class<Data> a() {
return this.f3674b.a();
}
@Override
public void b() {
try {
this.f3674b.b(this.f3675c);
} 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 decode = this.f3674b.decode(this.f3673a);
this.f3675c = decode;
aVar.d(decode);
} catch (IllegalArgumentException e2) {
aVar.c(e2);
}
}
}
public static final class c<Model> implements o<Model, InputStream> {
public final a<InputStream> f3676a = 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 decode(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.f3676a);
}
}
public e(a<Data> aVar) {
this.f3672a = aVar;
}
@Override
public n.a<Data> a(Model model, int i2, int i3, c.c.a.l.e eVar) {
return new n.a<>(new c.c.a.q.d(model), new b(model.toString(), this.f3672a));
}
@Override
public boolean b(Model model) {
return model.toString().startsWith("data:image");
}
}