public enum CsvEncoding extends Enum<CsvEncoding>
JsonEncoding
defines encodings
for JSON.
Note, however, that there is no specification on encodings that
CSV files can take; and most commonly only UTF-8 or Latin-1
is used.
NOTE: as of Jackson 2.2, this enumeration is not used for anything -- it is more of a placeholder for possible future functionality.
Note: if application want to explicitly disregard Encoding
limitations (to read in content encoded using an encoding not
listed as allowed), they can use Reader
instances as input
Enum Constant and Description |
---|
LATIN1 |
UTF16_BE |
UTF16_LE |
UTF32_BE |
UTF32_LE |
UTF8 |
Modifier and Type | Field and Description |
---|---|
protected boolean |
_bigEndian |
protected String |
_javaName |
Modifier and Type | Method and Description |
---|---|
static CsvEncoding |
from(com.fasterxml.jackson.core.JsonEncoding enc) |
String |
getJavaName()
Method for accessing encoding name that JDK will support.
|
boolean |
isBigEndian()
Whether encoding is big-endian (if encoding supports such
notion).
|
static CsvEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CsvEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CsvEncoding UTF8
public static final CsvEncoding UTF16_BE
public static final CsvEncoding UTF16_LE
public static final CsvEncoding UTF32_BE
public static final CsvEncoding UTF32_LE
public static final CsvEncoding LATIN1
protected final String _javaName
protected final boolean _bigEndian
public static CsvEncoding[] values()
for (CsvEncoding c : CsvEncoding.values()) System.out.println(c);
public static CsvEncoding valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static CsvEncoding from(com.fasterxml.jackson.core.JsonEncoding enc)
public String getJavaName()
public boolean isBigEndian()
UTF8
), return value is undefined.Copyright © 2016 FasterXML. All rights reserved.