public enum BOM extends Enum<BOM>
| Enum Constant and Description |
|---|
UTF_16BE |
UTF_16LE |
UTF_32BE |
UTF_32LE |
UTF_8 |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getEncoding() |
int |
length() |
static BOM |
parse(byte[] bom,
int c) |
static BOM |
parse(String encoding) |
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 UTF_8
public static final BOM UTF_16BE
public static final BOM UTF_16LE
public static final BOM UTF_32BE
public static final BOM UTF_32LE
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 getEncoding()
public byte[] getBytes()
public int length()
public static BOM parse(byte[] bom, int c)
Copyright © 2017. All rights reserved.