BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab

以下内容为反编译后的 b.java 源代码,内容仅作参考


package j0;

import java.io.File;
import java.io.IOException;
import java.util.Map;

public class b<E> extends s.g<E> {

    public static String f22809u = "http://logback.qos.ch/codes.html#rfa_no_tp";

    public static String f22810v = "http://logback.qos.ch/codes.html#rfa_no_rp";

    public static String f22811w = "http://logback.qos.ch/codes.html#rfa_collision";

    public static String f22812x = "http://logback.qos.ch/codes.html#rfa_file_after";

    public static String f22813y = "For more information, please visit ";

    public File f22814r;

    public i<E> f22815s;

    public c f22816t;

    @Override
    public void N(E e10) {
        synchronized (this.f22815s) {
            if (this.f22815s.isTriggeringEvent(this.f22814r, e10)) {
                k();
            }
        }
        super.N(e10);
    }

    @Override
    public String S() {
        return this.f22816t.e();
    }

    @Override
    public void Y(String str) {
        if (str != null && (this.f22815s != null || this.f22816t != null)) {
            addError("File property must be set before any triggeringPolicy or rollingPolicy properties");
            addError(f22813y + f22812x);
        }
        super.Y(str);
    }

    public final void Z() {
        String e10 = this.f22816t.e();
        try {
            this.f22814r = new File(e10);
            V(e10);
        } catch (IOException e11) {
            addError("setFile(" + e10 + ", false) call failed.", e11);
        }
    }

    public final void a0() {
        try {
            this.f22816t.k();
        } catch (e unused) {
            addWarn("RolloverFailure occurred. Deferring roll-over.");
            this.f25330k = true;
        }
    }

    public final boolean b0() {
        i<E> iVar = this.f22815s;
        return (iVar instanceof d) && d0(((d) iVar).f22818b);
    }

    public final boolean c0() {
        k0.i iVar;
        i<E> iVar2 = this.f22815s;
        if (!(iVar2 instanceof d) || (iVar = ((d) iVar2).f22818b) == null || this.f25331l == null) {
            return false;
        }
        return this.f25331l.matches(iVar.N());
    }

    public final boolean d0(k0.i iVar) {
        Map map = (Map) this.context.getObject("RFA_FILENAME_PATTERN_COLLISION_MAP");
        boolean z10 = false;
        if (map == null) {
            return false;
        }
        for (Map.Entry entry : map.entrySet()) {
            if (iVar.equals(entry.getValue())) {
                P("FileNamePattern", ((k0.i) entry.getValue()).toString(), (String) entry.getKey());
                z10 = true;
            }
        }
        if (this.f25348c != null) {
            map.put(getName(), iVar);
        }
        return z10;
    }

    public void e0(c cVar) {
        this.f22816t = cVar;
        if (cVar instanceof i) {
            this.f22815s = (i) cVar;
        }
    }

    public void k() {
        this.f25343h.lock();
        try {
            H();
            a0();
            Z();
        } finally {
            this.f25343h.unlock();
        }
    }

    @Override
    public void start() {
        i<E> iVar = this.f22815s;
        if (iVar == null) {
            addWarn("No TriggeringPolicy was set for the RollingFileAppender named " + getName());
            addWarn(f22813y + f22809u);
            return;
        }
        if (!iVar.isStarted()) {
            addWarn("TriggeringPolicy has not started. RollingFileAppender will not start");
            return;
        }
        if (b0()) {
            addError("Collisions detected with FileAppender/RollingAppender instances defined earlier. Aborting.");
            addError(f22813y + s.g.f25329q);
            return;
        }
        if (!this.f25330k) {
            addWarn("Append mode is mandatory for RollingFileAppender. Defaulting to append=true.");
            this.f25330k = true;
        }
        if (this.f22816t == null) {
            addError("No RollingPolicy was set for the RollingFileAppender named " + getName());
            addError(f22813y + f22810v);
            return;
        }
        if (c0()) {
            addError("File property collides with fileNamePattern. Aborting.");
            addError(f22813y + f22811w);
            return;
        }
        if (U()) {
            if (W() != null) {
                addWarn("Setting \"File\" property to null on account of prudent mode");
                Y(null);
            }
            if (this.f22816t.v() != k0.b.NONE) {
                addError("Compression is not supported in prudent mode. Aborting");
                return;
            }
        }
        this.f22814r = new File(S());
        addInfo("Active log file name: " + S());
        super.start();
    }

    @Override
    public void stop() {
        super.stop();
        c cVar = this.f22816t;
        if (cVar != null) {
            cVar.stop();
        }
        i<E> iVar = this.f22815s;
        if (iVar != null) {
            iVar.stop();
        }
        Map<String, k0.i> I = p0.g.I(this.context);
        if (I == null || getName() == null) {
            return;
        }
        I.remove(getName());
    }
}