package defpackage;

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

/* JADX INFO: renamed from: ʽᵪᵮ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0164 extends ByteArrayOutputStream {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ C0036 f1573;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0164(C0036 c0036, int i) {
        super(i);
        this.f1573 = c0036;
    }

    @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.f1573.f1182.name());
        } catch (UnsupportedEncodingException e) {
            throw new AssertionError(e);
        }
    }
}
