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

io.gitee.loulan_yxq.owner.http.enums.CharsetEnum Maven / Gradle / Ivy

The newest version!
package io.gitee.loulan_yxq.owner.http.enums;

import io.gitee.loulan_yxq.owner.core.tool.CharsetTool;

import java.nio.charset.Charset;

/*********************************************************
 ** 编码对照枚举类型
 ** 

** Date: Created in 2021/11/3 10:23 ** @author loulan ** @version 0.0.0 *********************************************************/ public enum CharsetEnum { UTF8("UTF8", CharsetTool.CHARSET_UTF_8), UTF_8("UTF-8", CharsetTool.CHARSET_UTF_8), GBK("GBK", CharsetTool.CHARSET_GBK); private String code; private Charset charset; CharsetEnum(String code, Charset charset) { this.code = code; this.charset = charset; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Charset getCharset() { return charset; } public void setCharset(Charset charset) { this.charset = charset; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy