package o;

import java.io.Closeable;
import java.io.IOException;
import java.nio.charset.Charset;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zG, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC3081zG implements Closeable {
    public abstract long b();

    public abstract C2804wO c();

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public void close() throws IOException {
        AbstractC2264qi0.d(f());
    }

    public abstract C80 d();

    public abstract InterfaceC1687kf f();

    public String g() throws IOException {
        Charset charsetA;
        InterfaceC1687kf interfaceC1687kfF = f();
        try {
            C2804wO c2804wOC = c();
            if (c2804wOC == null || (charsetA = c2804wOC.a(AbstractC2355rh.a)) == null) {
                charsetA = AbstractC2355rh.a;
            }
            String strQ = interfaceC1687kfF.Q(AbstractC2264qi0.r(interfaceC1687kfF, charsetA));
            interfaceC1687kfF.close();
            return strQ;
        } finally {
        }
    }
}
