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 |
|---|---|
java.lang.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 java.lang.String getCharset(byte[] buffer,
int len,
HttpHeaders headers)
throws java.io.IOException
getCharset in class CharsetDetectorjava.io.IOException - if there are problems reading the ResourceCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.