| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | POTENTIAL_BOM_SIZE
The maximum number of bytes a BOM header can have. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Optional | Returns: an Optional containing the detected BomHeader if a BOM header is found, or an empty Optional if no BOM header is foundthe byte array to detect the character encoding from buf)Detects the character encoding of a byte array based on the presence of a Byte Order Mark (BOM) header. |
| pack-priv static Optional | Returns: anOptional containing the detected BomHeader if a BOM header is found,
or Optional#EMPTY if no BOM header is foundthe file to detect the character encoding from file)Detects the character encoding of a file based on the presence of a Byte Order Mark (BOM) header. |
| POTENTIAL_BOM_SIZE | back to summary |
|---|---|
| pack-priv static final int POTENTIAL_BOM_SIZE The maximum number of bytes a BOM header can have. | |
| BomUtil | back to summary |
|---|---|
| private BomUtil() | |
| detectCharset | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pack-priv static Optional Detects the character encoding of a byte array based on the presence of a Byte Order Mark (BOM) header. The method supports the following BOM headers:
See Byte order mark.
| |||||||||||||
| detectCharset | back to summary |
|---|---|
| pack-priv static Optional Detects the character encoding of a file based on the presence of a Byte Order Mark (BOM) header.
| |