All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.azbh111.utils.java.charset.Charsets Maven / Gradle / Ivy

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() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy