public static enum FileStream.BOM extends java.lang.Enum<FileStream.BOM>
Enum Constant and Description |
---|
UTF16 |
UTF16BE |
UTF16LE |
UTF32 |
UTF32BE |
UTF32LE |
UTF8 |
Modifier and Type | Field and Description |
---|---|
int |
bpc
The expected bytes per character for ASCII.
|
java.nio.charset.Charset |
javaCs
The Java implementation of the
Charset handling the BOM's encoding. |
java.lang.String |
name
The BOM's official name.
|
int |
size
The size of BOM, in bytes.
|
Modifier and Type | Method and Description |
---|---|
static FileStream.BOM |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileStream.BOM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileStream.BOM UTF8
public static final FileStream.BOM UTF16
public static final FileStream.BOM UTF16BE
public static final FileStream.BOM UTF16LE
public static final FileStream.BOM UTF32
public static final FileStream.BOM UTF32BE
public static final FileStream.BOM UTF32LE
public final java.lang.String name
public final int size
public final int bpc
public final java.nio.charset.Charset javaCs
Charset
handling the BOM's encoding.public static FileStream.BOM[] values()
for (FileStream.BOM c : FileStream.BOM.values()) System.out.println(c);
public static FileStream.BOM valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null