AI Chat v1.1.8版本的 MD5 值为:1bcdce875f86738c8cfbf1e5f4064353
以下内容为反编译后的 j.java 源代码,内容仅作参考
package com.anythink.expressad.videocommon.b;
import android.text.TextUtils;
import com.anythink.expressad.foundation.h.p;
import com.anythink.expressad.foundation.h.x;
import com.anythink.expressad.videocommon.b.h;
import java.io.File;
public final class j {
public static final int a = 259200000;
private static final String b = "HTMLResourceManager";
private String c;
public static class a {
public static j a = new j((byte) 0);
private a() {
}
}
public j(byte b2) {
this();
}
private void c() {
this.c = com.anythink.expressad.foundation.g.c.d.b(com.anythink.expressad.foundation.g.c.a.ANYTHINK_700_HTML);
}
public final void b() {
try {
if (TextUtils.isEmpty(this.c)) {
return;
}
h.a.a.a(new com.anythink.expressad.foundation.g.g.a() {
@Override
public final void a() {
com.anythink.expressad.foundation.h.m.c(j.this.c);
}
@Override
public final void b() {
}
@Override
public final void c() {
}
});
} catch (Exception e) {
if (com.anythink.expressad.a.a) {
e.printStackTrace();
}
}
}
private j() {
this.c = com.anythink.expressad.foundation.g.c.d.b(com.anythink.expressad.foundation.g.c.a.ANYTHINK_700_HTML);
}
public static j a() {
return a.a;
}
public final boolean a(String str, byte[] bArr) {
if (bArr != null) {
try {
if (bArr.length > 0) {
StringBuilder sb = new StringBuilder();
sb.append(this.c);
sb.append("/");
sb.append(p.a(x.a(str)));
sb.append(".html");
return com.anythink.expressad.foundation.h.m.a(bArr, new File(sb.toString()));
}
return false;
} catch (Exception e) {
if (com.anythink.expressad.a.a) {
e.printStackTrace();
return false;
}
return false;
}
}
return false;
}
public final String b(String str) {
try {
String a2 = p.a(x.a(str));
File file = new File(this.c + "/" + a2 + ".html");
if (file.length() > 0) {
return com.anythink.expressad.foundation.h.m.a(file);
}
return null;
} catch (Throwable th) {
if (com.anythink.expressad.a.a) {
th.printStackTrace();
return null;
}
return null;
}
}
public final String a(String str) {
try {
String str2 = this.c + "/" + p.a(x.a(str)) + ".html";
if (new File(str2).exists()) {
return "file:////".concat(String.valueOf(str2));
}
return null;
} catch (Throwable th) {
if (com.anythink.expressad.a.a) {
th.printStackTrace();
return null;
}
return null;
}
}
}