what-the-bank/sources/o/uEw.java

61 lines
1.6 KiB
Java

package o;
import com.google.common.base.Throwables;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.Charset;
/* loaded from: classes2.dex */
public class uEw extends C10246dzE implements Cloneable {
private TZt jsonFactory;
@Override // o.C10246dzE, java.util.AbstractMap
public uEw clone() {
return (uEw) super.clone();
}
@Override // o.C10246dzE
public uEw set(String str, Object obj) {
return (uEw) super.set(str, obj);
}
public String toPrettyString() throws IOException {
TZt tZt = this.jsonFactory;
if (tZt == null) {
return super.toString();
}
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Charset charset = C16239mbQ.b;
ugU b = tZt.b();
b.d(false, this);
b.flush();
return byteArrayOutputStream.toString("UTF-8");
}
@Override // o.C10246dzE, java.util.AbstractMap
public String toString() {
TZt tZt = this.jsonFactory;
if (tZt == null) {
return super.toString();
}
try {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
Charset charset = C16239mbQ.b;
ugU b = tZt.b();
b.d(false, this);
b.flush();
return byteArrayOutputStream.toString("UTF-8");
} catch (IOException e) {
throw Throwables.propagate(e);
}
}
public final void setFactory(TZt tZt) {
this.jsonFactory = tZt;
}
public final TZt getFactory() {
return this.jsonFactory;
}
}