花瓣 v4.6.12版本的 MD5 值为:6a3515d4d16d98931f1b3d25a91b257e
以下内容为反编译后的 jad_er.java 源代码,内容仅作参考
package com.jd.ad.sdk.jad_ep;
import android.util.Base64;
import androidx.annotation.NonNull;
import com.jd.ad.sdk.jad_ep.jad_na;
import com.jd.ad.sdk.jad_wj.jad_dq;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
public final class jad_er<Model, Data> implements jad_na<Model, Data> {
public final jad_an<Data> jad_an;
public interface jad_an<Data> {
}
public static final class jad_cp<Model> implements jad_ob<Model, InputStream> {
public final jad_an<InputStream> jad_an = new jad_an(this);
public class jad_an implements jad_an<InputStream> {
public jad_an(jad_cp jad_cpVar) {
}
public Object jad_an(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
@NonNull
public jad_na<Model, InputStream> jad_an(@NonNull jad_re jad_reVar) {
return new jad_er(this.jad_an);
}
}
public jad_er(jad_an<Data> jad_anVar) {
this.jad_an = jad_anVar;
}
@Override
public jad_na.jad_an<Data> jad_an(@NonNull Model model, int i2, int i3, @NonNull com.jd.ad.sdk.jad_vi.jad_jw jad_jwVar) {
return new jad_na.jad_an<>(new com.jd.ad.sdk.jad_te.jad_bo(model), Collections.emptyList(), new jad_bo(model.toString(), this.jad_an));
}
public static final class jad_bo<Data> implements com.jd.ad.sdk.jad_wj.jad_dq<Data> {
public final String jad_an;
public final jad_an<Data> jad_bo;
public Data jad_cp;
public jad_bo(String str, jad_an<Data> jad_anVar) {
this.jad_an = str;
this.jad_bo = jad_anVar;
}
@Override
public void jad_an(@NonNull com.jd.ad.sdk.jad_sf.jad_fs jad_fsVar, @NonNull jad_dq.jad_an<? super Data> jad_anVar) {
try {
?? r2 = (Data) ((jad_cp.jad_an) this.jad_bo).jad_an(this.jad_an);
this.jad_cp = r2;
jad_anVar.jad_an((jad_dq.jad_an<? super Data>) r2);
} catch (IllegalArgumentException e2) {
jad_anVar.jad_an((Exception) e2);
}
}
@Override
public void jad_bo() {
try {
jad_an<Data> jad_anVar = this.jad_bo;
Data data = this.jad_cp;
((jad_cp.jad_an) jad_anVar).getClass();
((InputStream) data).close();
} catch (IOException e2) {
e2.printStackTrace();
}
}
@Override
public void jad_cp() {
}
@Override
@NonNull
public com.jd.ad.sdk.jad_vi.jad_an jad_dq() {
return com.jd.ad.sdk.jad_vi.jad_an.LOCAL;
}
@Override
@NonNull
public Class<Data> jad_an() {
((jad_cp.jad_an) this.jad_bo).getClass();
return InputStream.class;
}
}
@Override
public boolean jad_an(@NonNull Model model) {
return model.toString().startsWith("data:image");
}
}