mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
22 lines
915 B
Java
22 lines
915 B
Java
package org.apache.commons.codec;
|
|
|
|
import java.nio.charset.Charset;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class Charsets {
|
|
public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
|
|
public static final Charset US_ASCII = Charset.forName("US-ASCII");
|
|
public static final Charset UTF_16 = Charset.forName("UTF-16");
|
|
public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
|
|
public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
|
|
public static final Charset UTF_8 = Charset.forName("UTF-8");
|
|
|
|
public static Charset toCharset(String str) {
|
|
return str == null ? Charset.defaultCharset() : Charset.forName(str);
|
|
}
|
|
|
|
public static Charset toCharset(Charset charset) {
|
|
return charset == null ? Charset.defaultCharset() : charset;
|
|
}
|
|
}
|