package ඓ.㳳.K.K.㸾;

import java.io.IOException;
import ᨨ.AbstractC1473;
import ᨨ.AbstractC1481;
import ᨨ.AbstractC1483;
import ᨨ.C1486;
import ᨨ.C1492;
import 㿎.AbstractC2651;
import 㿎.C2628;

/* renamed from: ඓ.㳳.K.K.㸾.K  reason: contains not printable characters */
/* compiled from: CountingRequestBody */
public class C1312 extends AbstractC2651 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public C1314 f5093;

    /* renamed from: ῲ  reason: contains not printable characters */
    public AbstractC1313 f5094;

    /* renamed from: K  reason: contains not printable characters */
    public AbstractC2651 f5095;

    /* renamed from: ඓ.㳳.K.K.㸾.K$ῲ  reason: contains not printable characters */
    /* compiled from: CountingRequestBody */
    public interface AbstractC1313 {
    }

    /* renamed from: ඓ.㳳.K.K.㸾.K$K  reason: contains not printable characters */
    /* compiled from: CountingRequestBody */
    public final class C1314 extends AbstractC1481 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public long f5096 = 0;

        public C1314(AbstractC1473 r2) {
            super(r2);
        }

        @Override // ᨨ.AbstractC1481, ᨨ.AbstractC1473
        /* renamed from: K  reason: contains not printable characters */
        public void m3440(C1492 r5, long j) throws IOException {
            super.m3725(r5, j);
            this.f5096 += j;
            C1312 k = C1312.this;
            ((C1308) k.f5094).m3437(this.f5096, k.contentLength());
        }
    }

    public C1312(AbstractC2651 r1, AbstractC1313 r2) {
        this.f5095 = r1;
        this.f5094 = r2;
    }

    @Override // 㿎.AbstractC2651
    public long contentLength() {
        try {
            return this.f5095.contentLength();
        } catch (IOException e) {
            e.printStackTrace();
            return -1;
        }
    }

    @Override // 㿎.AbstractC2651
    public C2628 contentType() {
        return this.f5095.contentType();
    }

    @Override // 㿎.AbstractC2651
    public void writeTo(AbstractC1483 r2) throws IOException {
        this.f5093 = new C1314(r2);
        AbstractC1483 r22 = C1486.m3737(this.f5093);
        this.f5095.writeTo(r22);
        r22.flush();
    }
}
