44 lines
997 B
Java
44 lines
997 B
Java
package o;
|
|
|
|
import java.io.Writer;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class ico extends Writer {
|
|
private StringBuilder c = new StringBuilder(128);
|
|
private final String d;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public ico(String str) {
|
|
this.d = str;
|
|
}
|
|
|
|
@Override // java.io.Writer, java.io.Closeable, java.lang.AutoCloseable
|
|
public final void close() {
|
|
a();
|
|
}
|
|
|
|
@Override // java.io.Writer, java.io.Flushable
|
|
public final void flush() {
|
|
a();
|
|
}
|
|
|
|
@Override // java.io.Writer
|
|
public final void write(char[] cArr, int i, int i2) {
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
char c = cArr[i + i3];
|
|
if (c == '\n') {
|
|
a();
|
|
} else {
|
|
this.c.append(c);
|
|
}
|
|
}
|
|
}
|
|
|
|
private void a() {
|
|
if (this.c.length() > 0) {
|
|
StringBuilder sb = this.c;
|
|
sb.delete(0, sb.length());
|
|
}
|
|
}
|
|
}
|