discord-jadx/app/src/main/java/d0/g0/c.java

47 lines
1.6 KiB
Java

package d0.g0;
import d0.z.d.m;
import java.nio.charset.Charset;
/* compiled from: Charsets.kt */
public final class c {
public static final Charset a;
public static Charset b;
/* renamed from: c reason: collision with root package name */
public static Charset f2687c;
public static final c d = new c();
static {
Charset forName = Charset.forName("UTF-8");
m.checkNotNullExpressionValue(forName, "Charset.forName(\"UTF-8\")");
a = forName;
m.checkNotNullExpressionValue(Charset.forName("UTF-16"), "Charset.forName(\"UTF-16\")");
m.checkNotNullExpressionValue(Charset.forName("UTF-16BE"), "Charset.forName(\"UTF-16BE\")");
m.checkNotNullExpressionValue(Charset.forName("UTF-16LE"), "Charset.forName(\"UTF-16LE\")");
m.checkNotNullExpressionValue(Charset.forName("US-ASCII"), "Charset.forName(\"US-ASCII\")");
m.checkNotNullExpressionValue(Charset.forName("ISO-8859-1"), "Charset.forName(\"ISO-8859-1\")");
}
public final Charset UTF32_BE() {
Charset charset = f2687c;
if (charset != null) {
return charset;
}
Charset forName = Charset.forName("UTF-32BE");
m.checkNotNullExpressionValue(forName, "Charset.forName(\"UTF-32BE\")");
f2687c = forName;
return forName;
}
public final Charset UTF32_LE() {
Charset charset = b;
if (charset != null) {
return charset;
}
Charset forName = Charset.forName("UTF-32LE");
m.checkNotNullExpressionValue(forName, "Charset.forName(\"UTF-32LE\")");
b = forName;
return forName;
}
}