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

49 lines
1.3 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import java.io.IOException;
import java.nio.charset.Charset;
/* loaded from: classes2.dex */
public abstract class zzev implements zzfa {
private zzfg zztm;
private long zztn;
/* JADX INFO: Access modifiers changed from: protected */
public zzev(String str) {
this(str == null ? null : new zzfg(str));
}
@Override // com.google.android.gms.internal.firebase_ml.zzfa
public final boolean zzev() {
return true;
}
private zzev(zzfg zzfgVar) {
this.zztn = -1L;
this.zztm = zzfgVar;
}
@Override // com.google.android.gms.internal.firebase_ml.zzfa
public final long getLength() throws IOException {
if (this.zztn == -1) {
this.zztn = zzhn.zzb(this);
}
return this.zztn;
}
/* JADX INFO: Access modifiers changed from: protected */
public final Charset zzeu() {
zzfg zzfgVar = this.zztm;
return (zzfgVar == null || zzfgVar.zzey() == null) ? zzhc.UTF_8 : this.zztm.zzey();
}
@Override // com.google.android.gms.internal.firebase_ml.zzfa
public final String getType() {
zzfg zzfgVar = this.zztm;
if (zzfgVar == null) {
return null;
}
return zzfgVar.zzew();
}
}