package x7;

import java.io.IOException;

/* JADX INFO: loaded from: classes.dex */
public abstract class o implements H, AutoCloseable {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final H f18778q;

    public o(H h8) {
        P6.g.e(h8, "delegate");
        this.f18778q = h8;
    }

    @Override // x7.H
    public long M(C1731g c1731g, long j8) {
        P6.g.e(c1731g, "sink");
        return this.f18778q.M(c1731g, j8);
    }

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

    @Override // x7.H
    public final J f() {
        return this.f18778q.f();
    }

    public final String toString() {
        return getClass().getSimpleName() + '(' + this.f18778q + ')';
    }
}
