Shandong video conference v3.2.10版本的 MD5 值为:e9e908f971313b4c4bca5737f96781ef
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.bumptech.glide.load.k;
import android.util.Base64;
import androidx.annotation.g0;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.j.d;
import com.bumptech.glide.load.k.n;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class e<Model, Data> implements n<Model, Data> {
private static final String f7413b = "data:image";
private static final String f7414c = ";base64";
private final a<Data> a;
public interface a<Data> {
Data a(String str) throws IllegalArgumentException;
void a(Data data) throws IOException;
Class<Data> getDataClass();
}
public static final class c<Model> implements o<Model, InputStream> {
private final a<InputStream> a = new a();
@Override
@g0
public n<Model, InputStream> a(@g0 r rVar) {
return new e(this.a);
}
@Override
public void a() {
}
class a implements a<InputStream> {
a() {
}
@Override
public Class<InputStream> getDataClass() {
return InputStream.class;
}
@Override
public InputStream a(String str) {
if (str.startsWith(e.f7413b)) {
int indexOf = str.indexOf(44);
if (indexOf != -1) {
if (str.substring(0, indexOf).endsWith(e.f7414c)) {
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 void a(InputStream inputStream) throws IOException {
inputStream.close();
}
}
}
public e(a<Data> aVar) {
this.a = aVar;
}
@Override
public n.a<Data> a(@g0 Model model, int i2, int i3, @g0 com.bumptech.glide.load.f fVar) {
return new n.a<>(new com.bumptech.glide.q.e(model), new b(model.toString(), this.a));
}
private static final class b<Data> implements com.bumptech.glide.load.j.d<Data> {
private final String a;
private final a<Data> f7415b;
private Data f7416c;
b(String str, a<Data> aVar) {
this.a = str;
this.f7415b = aVar;
}
@Override
public void a(@g0 Priority priority, @g0 d.a<? super Data> aVar) {
try {
Data a = this.f7415b.a(this.a);
this.f7416c = a;
aVar.a((d.a<? super Data>) a);
} catch (IllegalArgumentException e2) {
aVar.a((Exception) e2);
}
}
@Override
@g0
public DataSource b() {
return DataSource.LOCAL;
}
@Override
public void cancel() {
}
@Override
@g0
public Class<Data> getDataClass() {
return this.f7415b.getDataClass();
}
@Override
public void a() {
try {
this.f7415b.a((a<Data>) this.f7416c);
} catch (IOException unused) {
}
}
}
@Override
public boolean a(@g0 Model model) {
return model.toString().startsWith(f7413b);
}
}