MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 e.java 源代码,内容仅作参考
package b5;
import android.util.Base64;
import b5.n;
import com.bumptech.glide.load.data.d;
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> f4937a;
public interface a<Data> {
Class<Data> a();
void b(Data data) throws IOException;
Data decode(String str) throws IllegalArgumentException;
}
public static final class b<Data> implements com.bumptech.glide.load.data.d<Data> {
public final String f4938a;
public final a<Data> f4939b;
public Data f4940c;
public b(String str, a<Data> aVar) {
this.f4938a = str;
this.f4939b = aVar;
}
@Override
public Class<Data> a() {
return this.f4939b.a();
}
@Override
public void b() {
try {
this.f4939b.b(this.f4940c);
} catch (IOException unused) {
}
}
@Override
public void cancel() {
}
@Override
public v4.a d() {
return v4.a.LOCAL;
}
@Override
public void e(com.bumptech.glide.g gVar, d.a<? super Data> aVar) {
try {
Data decode = this.f4939b.decode(this.f4938a);
this.f4940c = decode;
aVar.f(decode);
} catch (IllegalArgumentException e10) {
aVar.c(e10);
}
}
}
public static final class c<Model> implements o<Model, InputStream> {
public final a<InputStream> f4941a = new a();
public class a implements a<InputStream> {
public a() {
}
@Override
public Class<InputStream> a() {
return InputStream.class;
}
@Override
public void b(InputStream inputStream) throws IOException {
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> a(r rVar) {
return new e(this.f4941a);
}
}
public e(a<Data> aVar) {
this.f4937a = aVar;
}
@Override
public boolean a(Model model) {
return model.toString().startsWith("data:image");
}
@Override
public n.a<Data> b(Model model, int i10, int i11, v4.h hVar) {
return new n.a<>(new q5.d(model), new b(model.toString(), this.f4937a));
}
}