public interface CharsetExtractor
| Modifier and Type | Interface and Description |
|---|---|
static class |
CharsetExtractor.BOMDetection |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharset(byte[] input,
int length,
java.lang.String parseCharset) |
int |
getCharsetBufferSize()
How many bytes must be fed into the CharsetExtractor to figure
out the charset
|
CharsetExtractor.BOMDetection |
getCharsetByBOM(byte[] input,
int length)
Inspect the first few bytes of the file for any obvious but
type-specific BOM.
|
java.lang.String getCharset(byte[] input,
int length,
java.lang.String parseCharset)
throws DataFilterException,
java.io.IOException
DataFilterExceptionjava.io.IOExceptionCharsetExtractor.BOMDetection getCharsetByBOM(byte[] input, int length) throws DataFilterException, java.io.IOException
input - The data.DataFilterExceptionjava.io.IOExceptionint getCharsetBufferSize()