82 lines
2.5 KiB
Java
82 lines
2.5 KiB
Java
package o;
|
|
|
|
import com.google.zxing.FormatException;
|
|
import java.nio.charset.Charset;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
import org.bouncycastle.i18n.LocalizedMessage;
|
|
|
|
/* renamed from: o.KzG, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public enum EnumC0626KzG {
|
|
Cp437(new int[]{0, 2}, new String[0]),
|
|
ISO8859_1(new int[]{1, 3}, LocalizedMessage.DEFAULT_ENCODING),
|
|
ISO8859_2(4, "ISO-8859-2"),
|
|
ISO8859_3(5, "ISO-8859-3"),
|
|
ISO8859_4(6, "ISO-8859-4"),
|
|
ISO8859_5(7, "ISO-8859-5"),
|
|
ISO8859_7(9, "ISO-8859-7"),
|
|
ISO8859_9(11, "ISO-8859-9"),
|
|
ISO8859_13(15, "ISO-8859-13"),
|
|
ISO8859_15(17, "ISO-8859-15"),
|
|
ISO8859_16(18, "ISO-8859-16"),
|
|
SJIS(20, "Shift_JIS"),
|
|
Cp1250(21, "windows-1250"),
|
|
Cp1251(22, "windows-1251"),
|
|
Cp1252(23, "windows-1252"),
|
|
Cp1256(24, "windows-1256"),
|
|
UnicodeBigUnmarked(25, "UTF-16BE", "UnicodeBig"),
|
|
UTF8(26, "UTF-8"),
|
|
ASCII(new int[]{27, CipherSuite.TLS_DHE_PSK_WITH_AES_128_GCM_SHA256}, "US-ASCII"),
|
|
Big5,
|
|
GB18030(29, "GB2312", "EUC_CN", "GBK"),
|
|
EUC_KR(30, "EUC-KR");
|
|
|
|
private final String[] otherEncodingNames;
|
|
public final int[] values;
|
|
private static final Map<Integer, EnumC0626KzG> VALUE_TO_ECI = new HashMap();
|
|
private static final Map<String, EnumC0626KzG> NAME_TO_ECI = new HashMap();
|
|
|
|
static {
|
|
for (EnumC0626KzG enumC0626KzG : values()) {
|
|
for (int i : enumC0626KzG.values) {
|
|
VALUE_TO_ECI.put(Integer.valueOf(i), enumC0626KzG);
|
|
}
|
|
NAME_TO_ECI.put(enumC0626KzG.name(), enumC0626KzG);
|
|
for (String str : enumC0626KzG.otherEncodingNames) {
|
|
NAME_TO_ECI.put(str, enumC0626KzG);
|
|
}
|
|
}
|
|
}
|
|
|
|
EnumC0626KzG(String str) {
|
|
this(new int[]{28}, new String[0]);
|
|
}
|
|
|
|
EnumC0626KzG(int i, String... strArr) {
|
|
this.values = new int[]{i};
|
|
this.otherEncodingNames = strArr;
|
|
}
|
|
|
|
EnumC0626KzG(int[] iArr, String... strArr) {
|
|
this.values = iArr;
|
|
this.otherEncodingNames = strArr;
|
|
}
|
|
|
|
public static EnumC0626KzG d(Charset charset) {
|
|
return NAME_TO_ECI.get(charset.name());
|
|
}
|
|
|
|
public static EnumC0626KzG c(int i) throws FormatException {
|
|
if (i < 0 || i >= 900) {
|
|
throw FormatException.c();
|
|
}
|
|
return VALUE_TO_ECI.get(Integer.valueOf(i));
|
|
}
|
|
|
|
public static EnumC0626KzG e(String str) {
|
|
return NAME_TO_ECI.get(str);
|
|
}
|
|
}
|