public class EncodingPredictor
extends java.lang.Object
Predicts encoding for error messages based on some heuristics.
Modifier and Type | Class and Description |
---|---|
static class |
EncodingPredictor.DecodeResult
In certain cases the encoding is not known for sure (e.g.
|
(package private) static class |
EncodingPredictor.Translation |
Modifier and Type | Field and Description |
---|---|
private static EncodingPredictor.Translation[] |
FATAL_TRANSLATIONS |
Constructor and Description |
---|
EncodingPredictor() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
arrayContains(byte[] first,
int firstOffset,
int firstLength,
byte[] second,
int secondOffset,
int secondLength) |
static EncodingPredictor.DecodeResult |
decode(byte[] bytes,
int offset,
int length) |
private static final EncodingPredictor.Translation[] FATAL_TRANSLATIONS
public static EncodingPredictor.DecodeResult decode(byte[] bytes, int offset, int length)
private static boolean arrayContains(byte[] first, int firstOffset, int firstLength, byte[] second, int secondOffset, int secondLength)