package defpackage;

import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;

/* renamed from: ᵶˊː, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4798 extends ByteArrayOutputStream {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ C0142 f17823;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C4798(C0142 c0142, int i) {
        super(i);
        this.f17823 = c0142;
    }

    @Override // java.io.ByteArrayOutputStream
    public final String toString() {
        int i = ((ByteArrayOutputStream) this).count;
        if (i > 0) {
            int i2 = i - 1;
            if (((ByteArrayOutputStream) this).buf[i2] == 13) {
                i = i2;
            }
        }
        try {
            return new String(((ByteArrayOutputStream) this).buf, 0, i, this.f17823.f1521.name());
        } catch (UnsupportedEncodingException e) {
            throw new AssertionError(e);
        }
    }
}
