海角 v1.5.2版本的 MD5 值为:66a890a3993572bcf201f98e8ab772a0
以下内容为反编译后的 e.java 源代码,内容仅作参考
package d.d.a.m.p;
import android.util.Base64;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import d.d.a.m.n.d;
import d.d.a.m.p.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> f8931a;
public interface a<Data> {
}
public static final class b<Data> implements d.d.a.m.n.d<Data> {
public final String f8932d;
public final a<Data> f8933h;
public Data f8934i;
public b(String str, a<Data> aVar) {
this.f8932d = str;
this.f8933h = aVar;
}
@Override
public Class<Data> a() {
Objects.requireNonNull((c.a) this.f8933h);
return InputStream.class;
}
@Override
public void b() {
try {
a<Data> aVar = this.f8933h;
Data data = this.f8934i;
Objects.requireNonNull((c.a) aVar);
((InputStream) data).close();
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public void e(Priority priority, d.a<? super Data> aVar) {
try {
?? r2 = (Data) ((c.a) this.f8933h).a(this.f8932d);
this.f8934i = r2;
aVar.d(r2);
} catch (IllegalArgumentException e2) {
aVar.c(e2);
}
}
@Override
public DataSource getDataSource() {
return DataSource.LOCAL;
}
}
public static final class c<Model> implements o<Model, InputStream> {
public final a<InputStream> f8935a = 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
public n<Model, InputStream> b(r rVar) {
return new e(this.f8935a);
}
@Override
public void c() {
}
}
public e(a<Data> aVar) {
this.f8931a = aVar;
}
@Override
public n.a<Data> a(Model model, int i2, int i3, d.d.a.m.j jVar) {
return new n.a<>(new d.d.a.r.d(model), new b(model.toString(), this.f8931a));
}
@Override
public boolean b(Model model) {
return model.toString().startsWith("data:image");
}
}