public class TextCodecBOMHandler extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NEED_MORE_BYTES |
static int |
NO_BOM |
static int |
UTF_16_BE |
static int |
UTF_16_LE |
static int |
UTF_8 |
Constructor and Description |
---|
TextCodecBOMHandler() |
Modifier and Type | Method and Description |
---|---|
int |
addBytes(byte[] input,
int offset,
int length,
boolean noMoreBytes)
Returns the number of bytes that were internally buffered for the BOM.
|
static int |
bytesInBOM(int type) |
byte[] |
getBOM() |
int |
getBOMLength() |
int |
getBOMType() |
byte[] |
getBuffered() |
int |
getBufferedLength() |
void |
reset() |
public static final int NEED_MORE_BYTES
public static final int NO_BOM
public static final int UTF_8
public static final int UTF_16_BE
public static final int UTF_16_LE
public static int bytesInBOM(int type)
public void reset()
public int addBytes(byte[] input, int offset, int length, boolean noMoreBytes)
input
- offset
- length
- noMoreBytes
- public byte[] getBOM()
public int getBOMLength()
public int getBOMType()
public byte[] getBuffered()
public int getBufferedLength()