public enum BOM extends Enum<BOM>
| Enum Constant and Description |
|---|
UTF16_BE |
UTF16_LE |
UTF32_BE |
UTF32_LE |
UTF8 |
| Modifier and Type | Method and Description |
|---|---|
static BOM |
detect(ByteBuffer buffer) |
String |
encoding() |
int[] |
expected() |
static BOM |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BOM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BOM UTF32_LE
public static final BOM UTF32_BE
public static final BOM UTF16_LE
public static final BOM UTF16_BE
public static final BOM UTF8
public static BOM[] values()
for (BOM c : BOM.values()) System.out.println(c);
public static 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 String encoding()
public int[] expected()
public static BOM detect(ByteBuffer buffer)
Copyright © 2021. All rights reserved.