public enum JsonEncoding extends Enum<JsonEncoding>
Note: if application want to explicitly disregard Encoding
limitations (to read in JSON encoded using an encoding not
listed as allowed), they can use Reader
/
Writer
instances as input
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
_bigEndian |
protected String |
_javaName |
限定符和类型 | 方法和说明 |
---|---|
String |
getJavaName()
Method for accessing encoding name that JDK will support.
|
boolean |
isBigEndian()
Whether encoding is big-endian (if encoding supports such
notion).
|
static JsonEncoding |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonEncoding[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final JsonEncoding UTF8
public static final JsonEncoding UTF16_BE
public static final JsonEncoding UTF16_LE
public static final JsonEncoding UTF32_BE
public static final JsonEncoding UTF32_LE
protected final String _javaName
protected final boolean _bigEndian
public static JsonEncoding[] values()
for (JsonEncoding c : JsonEncoding.values()) System.out.println(c);
public static JsonEncoding valueOf(String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerExceptionpublic String getJavaName()
public boolean isBigEndian()
UTF8
), return value is undefined.