| Package | Description |
|---|---|
| org.apache.commons.io |
This package defines utility classes for working with streams, readers,
writers and files.
|
| org.apache.commons.io.input |
This package provides implementations of input classes, such as
InputStream and Reader. |
| Modifier and Type | Field | Description |
|---|---|---|
static ByteOrderMark |
ByteOrderMark.UTF_16BE |
UTF-16BE BOM (Big-Endian)
|
static ByteOrderMark |
ByteOrderMark.UTF_16LE |
UTF-16LE BOM (Little-Endian)
|
static ByteOrderMark |
ByteOrderMark.UTF_32BE |
UTF-32BE BOM (Big-Endian)
|
static ByteOrderMark |
ByteOrderMark.UTF_32LE |
UTF-32LE BOM (Little-Endian)
|
static ByteOrderMark |
ByteOrderMark.UTF_8 |
UTF-8 BOM
|
| Modifier and Type | Method | Description |
|---|---|---|
ByteOrderMark |
BOMInputStream.getBOM() |
Return the BOM (Byte Order Mark).
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
BOMInputStream.hasBOM(ByteOrderMark bom) |
Indicates whether the stream contains the specified BOM.
|
| Constructor | Description |
|---|---|
BOMInputStream(java.io.InputStream delegate,
boolean include,
ByteOrderMark... boms) |
Constructs a new BOM InputStream that detects the specified BOMs and optionally includes them.
|
BOMInputStream(java.io.InputStream delegate,
ByteOrderMark... boms) |
Constructs a new BOM InputStream that excludes the specified BOMs.
|