Package org.postgresql.core
Class EncodingPredictor
java.lang.Object
org.postgresql.core.EncodingPredictor
Predicts encoding for error messages based on some heuristics.
- For certain languages, it is known how "FATAL" is translated
- For Japanese, several common words are hardcoded
- Then try various LATIN encodings
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
In certain cases the encoding is not known for sure (e.g. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable EncodingPredictor.DecodeResult
decode
(byte[] bytes, int offset, int length)
-
Constructor Details
-
EncodingPredictor
public EncodingPredictor()
-
-
Method Details
-
decode
-