package l;

import java.io.IOException;

/* JADX INFO: compiled from: ForwardingSink.kt */
/* JADX INFO: loaded from: classes.dex */
public abstract class j implements y {
    private final y delegate;

    public j(y yVar) {
        j.p0.d.r.g(yVar, "delegate");
        this.delegate = yVar;
    }

    /* JADX INFO: renamed from: -deprecated_delegate, reason: not valid java name */
    public final y m5deprecated_delegate() {
        return this.delegate;
    }

    @Override // l.y, java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel
    public void close() throws IOException {
        this.delegate.close();
    }

    public final y delegate() {
        return this.delegate;
    }

    @Override // l.y, java.io.Flushable
    public void flush() throws IOException {
        this.delegate.flush();
    }

    @Override // l.y
    public b0 timeout() {
        return this.delegate.timeout();
    }

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

    @Override // l.y
    public void write(f fVar, long j2) throws IOException {
        j.p0.d.r.g(fVar, "source");
        this.delegate.write(fVar, j2);
    }
}
