package com.google.android.libraries.places.internal; import java.io.IOException; /* loaded from: classes2.dex */ public abstract class zzmj { private static final zzmj zza = new zzmh("base64()", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", '='); private static final zzmj zzb = new zzmh("base64Url()", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", '='); private static final zzmj zzc = new zzmi("base32()", "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", '='); private static final zzmj zzd = new zzmi("base32Hex()", "0123456789ABCDEFGHIJKLMNOPQRSTUV", '='); private static final zzmj zze = new zzmg("base16()", "0123456789ABCDEF"); abstract void zza(Appendable appendable, byte[] bArr, int i, int i2) throws IOException; abstract int zzb(int i); public final String zze(byte[] bArr, int i, int i2) { zzig.zzg(0, i2, bArr.length); StringBuilder sb = new StringBuilder(zzb(i2)); try { zza(sb, bArr, 0, i2); return sb.toString(); } catch (IOException e) { throw new AssertionError(e); } } public static zzmj zzd() { return zze; } }