56 lines
1.5 KiB
Java
56 lines
1.5 KiB
Java
package o;
|
|
|
|
import java.nio.charset.Charset;
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class WFo {
|
|
public StringBuilder a;
|
|
public StringBuilder b;
|
|
public Charset e;
|
|
|
|
public WFo() {
|
|
this.e = StandardCharsets.ISO_8859_1;
|
|
this.b = new StringBuilder();
|
|
}
|
|
|
|
public WFo(int i) {
|
|
this.e = StandardCharsets.ISO_8859_1;
|
|
this.b = new StringBuilder(i);
|
|
}
|
|
|
|
public final void c() {
|
|
if (this.e.equals(StandardCharsets.ISO_8859_1)) {
|
|
if (this.b.length() > 0) {
|
|
StringBuilder sb = this.a;
|
|
if (sb == null) {
|
|
this.a = this.b;
|
|
this.b = new StringBuilder();
|
|
return;
|
|
} else {
|
|
sb.append((CharSequence) this.b);
|
|
this.b = new StringBuilder();
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
if (this.b.length() > 0) {
|
|
byte[] bytes = this.b.toString().getBytes(StandardCharsets.ISO_8859_1);
|
|
this.b = new StringBuilder();
|
|
StringBuilder sb2 = this.a;
|
|
if (sb2 == null) {
|
|
this.a = new StringBuilder(new String(bytes, this.e));
|
|
} else {
|
|
sb2.append(new String(bytes, this.e));
|
|
}
|
|
}
|
|
}
|
|
|
|
public final String toString() {
|
|
c();
|
|
StringBuilder sb = this.a;
|
|
return sb == null ? "" : sb.toString();
|
|
}
|
|
}
|