Predicts encoding for error messages based on some heuristics.
| Modifier and Type | Class and Description |
|---|---|
| public static class | EncodingPredictor.
In certain cases the encoding is not known for sure (e.g. before authentication). |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final EncodingPredictor. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | arrayContains(byte[] first, int firstOffset, int firstLength, byte[] second, int secondOffset, int secondLength)
|
| public static @Nullable EncodingPredictor. |
| FATAL_TRANSLATIONS | back to summary |
|---|---|
| private static final EncodingPredictor. | |
| EncodingPredictor | back to summary |
|---|---|
| public EncodingPredictor() | |
| arrayContains | back to summary |
|---|---|
| private static boolean arrayContains(byte[] first, int firstOffset, int firstLength, byte[] second, int secondOffset, int secondLength) | |
| decode | back to summary |
|---|---|
| public static @Nullable EncodingPredictor. | |
| Modifier and Type | Field and Description |
|---|---|
| public final @Nullable String | |
| public final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| encoding | back to summary |
|---|---|
| public final @Nullable String encoding | |
| result | back to summary |
|---|---|
| public final String result | |
| DecodeResult | back to summary |
|---|---|
| pack-priv DecodeResult(String result, @Nullable String encoding) | |
| Modifier and Type | Field and Description |
|---|---|
| public final String[] | |
| public final @Nullable String | |
| public final String | |
| private final @Nullable String[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| encodings | back to summary |
|---|---|
| public final String[] encodings | |
| fatalText | back to summary |
|---|---|
| public final @Nullable String fatalText | |
| language | back to summary |
|---|---|
| public final String language | |
| texts | back to summary |
|---|---|
| private final @Nullable String[] texts | |