public enum JsonEncoding extends java.lang.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
| Enum Constant | Description |
|---|---|
UTF16_BE |
|
UTF16_LE |
|
UTF32_BE |
|
UTF32_LE |
|
UTF8 |
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
_bigEndian |
|
protected java.lang.String |
_javaName |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.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(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static JsonEncoding[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 java.lang.String _javaName
protected final boolean _bigEndian
public static JsonEncoding[] values()
for (JsonEncoding c : JsonEncoding.values()) System.out.println(c);
public static JsonEncoding valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getJavaName()
public boolean isBigEndian()
UTF8), return value is undefined.