我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9

以下内容为反编译后的 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 f4767a = 259200000;
    private static final String f4768b = "HTMLResourceManager";
    private String c;

    j(byte b2) {
        this();
    }

    public static class a {
        public static j f4770a = new j((byte) 0);

        private a() {
        }
    }

    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.f4770a;
    }

    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.f4762a.a(new com.anythink.expressad.foundation.g.g.a() {
                @Override
                public final void b() {
                }

                @Override
                public final void c() {
                }

                @Override
                public final void a() {
                    com.anythink.expressad.foundation.h.m.c(j.this.c);
                }
            });
        } catch (Exception e) {
            if (com.anythink.expressad.a.f2805a) {
                e.printStackTrace();
            }
        }
    }

    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.f2805a) {
                    e.printStackTrace();
                    return false;
                }
                return false;
            }
        }
        return false;
    }

    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.f2805a) {
                th.printStackTrace();
                return null;
            }
            return null;
        }
    }

    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.f2805a) {
                th.printStackTrace();
                return null;
            }
            return null;
        }
    }
}