public enum ImCharset extends Enum<ImCharset>
该类明确常见的HTTP编码,并提供枚举选择
HTTP common encoding enumeration class
This class specifies common HTTP encodings and provides enumeration options.
program Sinlmao Commons Network Utils
description HTTP 常见编码枚举类
create 2019-10-10 15:07
| 枚举常量和说明 |
|---|
Big5
[Big5] 大五码
[Big5] Big five yards
|
GB2312
[GB2312] 信息交换用汉字编码字符集
[GBK] Chinese character coded character set for information exchange
|
GBK
[GBK] 汉字编码字符集
[GBK] Chinese Internal Code Specification
|
ISO_8859_1
[ISO-8859-1] 单字节编码,向下兼容ASCII
[ISO-8859-1] Single-byte encoding, backward compatible with ASCII
|
UTF_16
[UTF-16] Unicode字符编码五层次模型
[UTF-16] Unicode character encoding five-level model
|
UTF_8
[UTF8] 针对Unicode的可变长度字符编码
[UTF8] Variable length character encoding for Unicode
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString()
转换编码的完整描述字符
Convert the full description character of the code
|
static ImCharset |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ImCharset[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ImCharset UTF_8
[UTF8] Variable length character encoding for Unicode
public static final ImCharset GB2312
[GBK] Chinese character coded character set for information exchange
public static final ImCharset GBK
[GBK] Chinese Internal Code Specification
public static final ImCharset ISO_8859_1
[ISO-8859-1] Single-byte encoding, backward compatible with ASCII
public static final ImCharset UTF_16
[UTF-16] Unicode character encoding five-level model
public static final ImCharset Big5
[Big5] Big five yards
public static ImCharset[] values()
for (ImCharset c : ImCharset.values()) System.out.println(c);
public static ImCharset valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.