public enum Encoding extends Enum<Encoding>
| Enum Constant and Description |
|---|
OTHER
Any other encoding.
|
UTF8
Plain UTF-8 without a BOM.
|
UTF8_BOM
UTF-8 with a BOM at the beginning.
|
| Modifier and Type | Method and Description |
|---|---|
static Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encoding UTF8
public static final Encoding UTF8_BOM
public static final Encoding OTHER
public static Encoding[] values()
for (Encoding c : Encoding.values()) System.out.println(c);
public static Encoding 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 nullCopyright © 2013-2015. All Rights Reserved.