public static enum UnicodeBomInputStream.BOM extends Enum<UnicodeBomInputStream.BOM>
Enum Constant and Description |
---|
NONE |
UTF_16_BE
UTF-16 big endian BOM
|
UTF_16_LE
UTF-16 little endian BOM
|
UTF_32_BE
UTF-32 big endian BOM
|
UTF_32_LE
UTF-32 little endian BOM
|
UTF_8
UTF-8 BOM
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getDescription() |
String |
toString() |
static UnicodeBomInputStream.BOM |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnicodeBomInputStream.BOM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnicodeBomInputStream.BOM NONE
public static final UnicodeBomInputStream.BOM UTF_8
public static final UnicodeBomInputStream.BOM UTF_16_LE
public static final UnicodeBomInputStream.BOM UTF_16_BE
public static final UnicodeBomInputStream.BOM UTF_32_LE
public static final UnicodeBomInputStream.BOM UTF_32_BE
public static UnicodeBomInputStream.BOM[] values()
for (UnicodeBomInputStream.BOM c : UnicodeBomInputStream.BOM.values()) System.out.println(c);
public static UnicodeBomInputStream.BOM 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 byte[] getBytes()
public String getDescription()
public String toString()
toString
in class Enum<UnicodeBomInputStream.BOM>
Copyright © 2007-2013. All Rights Reserved.