alexandroid/decompiled/jadx/sources/com/google/common/io/LineBuffer.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

107 lines
3.1 KiB
Java

package com.google.common.io;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.annotations.J2ktIncompatible;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@J2ktIncompatible
@GwtIncompatible
/* loaded from: classes8.dex */
abstract class LineBuffer {
private StringBuilder line = new StringBuilder();
private boolean sawReturn;
@CanIgnoreReturnValue
private boolean finishLine(boolean z) throws IOException {
handleLine(this.line.toString(), this.sawReturn ? z ? "\r\n" : StringUtils.CR : z ? "\n" : "");
this.line = new StringBuilder();
this.sawReturn = false;
return z;
}
/* JADX WARN: Removed duplicated region for block: B:12:0x001f */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void add(char[] r7, int r8, int r9) throws java.io.IOException {
/*
r6 = this;
boolean r0 = r6.sawReturn
r1 = 0
r2 = 10
r3 = 1
if (r0 == 0) goto L1a
if (r9 <= 0) goto L1a
char r0 = r7[r8]
if (r0 != r2) goto L10
r0 = r3
goto L11
L10:
r0 = r1
L11:
boolean r0 = r6.finishLine(r0)
if (r0 == 0) goto L1a
int r0 = r8 + 1
goto L1b
L1a:
r0 = r8
L1b:
int r8 = r8 + r9
r9 = r0
L1d:
if (r0 >= r8) goto L53
char r4 = r7[r0]
if (r4 == r2) goto L46
r5 = 13
if (r4 == r5) goto L28
goto L51
L28:
java.lang.StringBuilder r4 = r6.line
int r5 = r0 - r9
r4.append(r7, r9, r5)
r6.sawReturn = r3
int r9 = r0 + 1
if (r9 >= r8) goto L43
char r4 = r7[r9]
if (r4 != r2) goto L3b
r4 = r3
goto L3c
L3b:
r4 = r1
L3c:
boolean r4 = r6.finishLine(r4)
if (r4 == 0) goto L43
r0 = r9
L43:
int r9 = r0 + 1
goto L51
L46:
java.lang.StringBuilder r4 = r6.line
int r5 = r0 - r9
r4.append(r7, r9, r5)
r6.finishLine(r3)
goto L43
L51:
int r0 = r0 + r3
goto L1d
L53:
java.lang.StringBuilder r6 = r6.line
int r8 = r8 - r9
r6.append(r7, r9, r8)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.common.io.LineBuffer.add(char[], int, int):void");
}
public void finish() throws IOException {
if (this.sawReturn || this.line.length() > 0) {
finishLine(false);
}
}
public abstract void handleLine(String str, String str2) throws IOException;
}