com.github.azbh111.utils.java.charset.Charsets Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-java Show documentation
Show all versions of utils-java Show documentation
com.github.azbh111:utils-java
The newest version!
package com.github.azbh111.utils.java.charset;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
*
* @author pyz
* @date 2019/10/19 11:52 上午
*/
public class Charsets {
public static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1;
public static final Charset UTF_8 = StandardCharsets.UTF_8;
public static final Charset UTF_16 = StandardCharsets.UTF_16;
public static final Charset UTF_16BE = StandardCharsets.UTF_16BE;
public static final Charset UTF_16LE = StandardCharsets.UTF_16LE;
public static final Charset GB2312 = Charset.forName("GB2312");
public static final Charset GBK = Charset.forName("GBK");
public static final Charset GB18030 = Charset.forName("GB18030");
private Charsets() {
}
}