ALPHA IPTV v2.6版本的 MD5 值为:1b1709aef1e6bd81c7308280e9074c1d
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.bumptech.glide.load.c;
import android.support.annotation.NonNull;
import android.util.Base64;
import com.bumptech.glide.load.a.d;
import com.bumptech.glide.load.c.n;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class e<Model, Data> implements n<Model, Data> {
private final a<Data> a;
public interface a<Data> {
Class<Data> a();
Data a(String str) throws IllegalArgumentException;
void a(Data data) throws IOException;
}
private static final class b<Data> implements com.bumptech.glide.load.a.d<Data> {
private final a<Data> a;
private Data f576a;
private final String f577a;
b(String str, a<Data> aVar) {
this.f577a = str;
this.a = aVar;
}
@Override
@NonNull
public com.bumptech.glide.load.a mo218a() {
return com.bumptech.glide.load.a.LOCAL;
}
@Override
@NonNull
public Class<Data> mo219a() {
return this.a.a();
}
@Override
public void mo220a() {
try {
this.a.a((a<Data>) this.f576a);
} catch (IOException unused) {
}
}
@Override
public void a(@NonNull com.bumptech.glide.g gVar, @NonNull d.a<? super Data> aVar) {
try {
this.f576a = this.a.a(this.f577a);
aVar.a((d.a<? super Data>) ((Data) this.f576a));
} catch (IllegalArgumentException e) {
aVar.a((Exception) e);
}
}
@Override
public void b() {
}
}
public static final class c<Model> implements o<Model, InputStream> {
private final a<InputStream> a = new a<InputStream>() {
@Override
public InputStream 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 Class<InputStream> a() {
return InputStream.class;
}
@Override
public void a(InputStream inputStream) throws IOException {
inputStream.close();
}
};
@Override
@NonNull
public n<Model, InputStream> a(@NonNull r rVar) {
return new e(this.a);
}
}
public e(a<Data> aVar) {
this.a = aVar;
}
@Override
public n.a<Data> a(@NonNull Model model, int i, int i2, @NonNull com.bumptech.glide.load.i iVar) {
return new n.a<>(new com.bumptech.glide.g.b(model), new b(model.toString(), this.a));
}
@Override
public boolean a(@NonNull Model model) {
return model.toString().startsWith("data:image");
}
}