|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CharsetDetector.ByteOrderMark> org.weborganic.ox.util.CharsetDetector.ByteOrderMark
public static enum CharsetDetector.ByteOrderMark
An enumeration of byte order marks supported by this class.
Enum Constant Summary | |
---|---|
UTF16BE
The byte-order mark for UTF-16LE (Sixteen-bit UCS Transformation Format, big-endian byte order). |
|
UTF16LE
The byte-order mark for UTF-16LE (Sixteen-bit UCS Transformation Format, little-endian byte order). |
|
UTF8
The byte-order mark for UTF-8 (Eight-bit UCS Transformation Format). |
Method Summary | |
---|---|
Charset |
charset()
The charset corresponding to the BOM. |
boolean |
matches(byte[] bom)
Indicates whether the specified byte-order mark matches on the constants. |
static CharsetDetector.ByteOrderMark |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CharsetDetector.ByteOrderMark[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CharsetDetector.ByteOrderMark UTF8
public static final CharsetDetector.ByteOrderMark UTF16LE
public static final CharsetDetector.ByteOrderMark UTF16BE
Method Detail |
---|
public static CharsetDetector.ByteOrderMark[] values()
for (CharsetDetector.ByteOrderMark c : CharsetDetector.ByteOrderMark.values()) System.out.println(c);
public static CharsetDetector.ByteOrderMark valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean matches(byte[] bom)
bom
- The BOM array.
true
if thepublic Charset charset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |