NetGuard v2.328版本的 MD5 值为:4adaa6f0accf8a6a5ab62c36e5a5d3f8
以下内容为反编译后的 C0039f.java 源代码,内容仅作参考
package M;
import android.util.Base64;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
final class C0039f implements InterfaceC0037d, InterfaceC0044k {
public C0039f(int i2) {
}
@Override
public final Class a() {
return InputStream.class;
}
@Override
public final Object b(byte[] bArr) {
return new ByteArrayInputStream(bArr);
}
public final ByteArrayInputStream c(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.");
}
}