package o6;

import java.io.IOException;
import p6.C1435a;
import x7.C1731g;

/* JADX INFO: renamed from: o6.k, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC1391k {
    public final Object a(String str) {
        C1731g c1731g = new C1731g();
        c1731g.z0(str);
        C1395o c1395o = new C1395o(c1731g);
        Object objB = b(c1395o);
        if ((this instanceof AbstractC1390j) || c1395o.K() == 10) {
            return objB;
        }
        throw new A6.b("JSON document was not fully consumed.");
    }

    public abstract Object b(AbstractC1394n abstractC1394n);

    public final C1435a c() {
        return this instanceof C1435a ? (C1435a) this : new C1435a(this);
    }

    public final String d(Object obj) {
        C1731g c1731g = new C1731g();
        try {
            e(new C1396p(c1731g), obj);
            return c1731g.o0();
        } catch (IOException e8) {
            throw new AssertionError(e8);
        }
    }

    public abstract void e(AbstractC1397q abstractC1397q, Object obj);
}
