what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzgn.java

44 lines
1.3 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.StringReader;
import java.nio.charset.Charset;
/* loaded from: classes2.dex */
public final class zzgn extends zzge {
public static zzgn zzgx() {
return zzgo.zzwz;
}
@Override // com.google.android.gms.internal.firebase_ml.zzge
public final zzgi zza(InputStream inputStream) {
return zza(new InputStreamReader(inputStream, zzhc.UTF_8));
}
@Override // com.google.android.gms.internal.firebase_ml.zzge
public final zzgi zza(InputStream inputStream, Charset charset) {
if (charset == null) {
return zza(inputStream);
}
return zza(new InputStreamReader(inputStream, charset));
}
@Override // com.google.android.gms.internal.firebase_ml.zzge
public final zzgi zzam(String str) {
return zza(new StringReader(str));
}
private final zzgi zza(Reader reader) {
return new zzgq(this, new zzqn(reader));
}
@Override // com.google.android.gms.internal.firebase_ml.zzge
public final zzgf zza(OutputStream outputStream, Charset charset) {
return new zzgp(this, new zzqq(new OutputStreamWriter(outputStream, charset)));
}
}