package com.linecorp.linesdk.a.a.a;

import com.bytedance.covode.number.Covode;

public final class d implements c<String> {
    public final String LIZ;

    static {
        Covode.recordClassIndex(46023);
    }

    public d() {
        this("UTF-8");
    }

    public d(String str) {
        this.LIZ = str;
    }

    /* JADX WARNING: Removed duplicated region for block: B:13:0x0032  */
    /* renamed from: LIZIZ */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final java.lang.String LIZ(java.io.InputStream r7) {
        /*
            r6 = this;
            r5 = 11691(0x2dab, float:1.6383E-41)
            com.bytedance.frameworks.apm.trace.MethodCollector.i(r5)
            java.lang.StringBuilder r4 = new java.lang.StringBuilder
            r4.<init>()
            r3 = 0
            java.io.BufferedReader r2 = new java.io.BufferedReader     // Catch:{ all -> 0x002c }
            java.io.InputStreamReader r1 = new java.io.InputStreamReader     // Catch:{ all -> 0x002c }
            java.lang.String r0 = r6.LIZ     // Catch:{ all -> 0x002c }
            r1.<init>(r7, r0)     // Catch:{ all -> 0x002c }
            r2.<init>(r1)     // Catch:{ all -> 0x002c }
        L_0x0017:
            java.lang.String r0 = r2.readLine()     // Catch:{ all -> 0x002e }
            if (r0 == 0) goto L_0x0021
            r4.append(r0)     // Catch:{ all -> 0x002e }
            goto L_0x0017
        L_0x0021:
            r2.close()
            java.lang.String r0 = r4.toString()
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r5)
            return r0
        L_0x002c:
            r0 = move-exception
            goto L_0x0030
        L_0x002e:
            r0 = move-exception
            r3 = r2
        L_0x0030:
            if (r3 == 0) goto L_0x0035
            r3.close()
        L_0x0035:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r5)
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.linecorp.linesdk.a.a.a.d.LIZ(java.io.InputStream):java.lang.String");
    }
}
