public class RotatingCharsetDetector extends CharsetDetector
| Modifier and Type | Field and Description |
|---|---|
static int |
GUESS_TYPES |
static int |
MODE_COUNT |
static int[][] |
MODES |
CHARSET_TOKEN, DEFAULT_CHARSET, HTTP_CONTENT_TYPE_HEADER, MAX_CHARSET_READAHEAD| Constructor and Description |
|---|
RotatingCharsetDetector() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset(byte[] buffer,
int len,
HttpHeaders headers) |
int |
nextMode(int curMode) |
contentTypeToCharset, findMetaContentType, getCharsetFromBytes, getCharsetFromHeaders, getCharsetFromMeta, isCharsetSupported, mapCharsetpublic static final int[][] MODES
public static final int MODE_COUNT
public static final int GUESS_TYPES
public int nextMode(int curMode)
public String getCharset(byte[] buffer, int len, HttpHeaders headers) throws IOException
getCharset in class CharsetDetectorIOException - if there are problems reading the ResourceCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.