Package org.postgresql.core
Class EncodingPredictor
- java.lang.Object
-
- org.postgresql.core.EncodingPredictor
-
public class EncodingPredictor extends java.lang.Object
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 Classes Modifier and Type Class Description static class
EncodingPredictor.DecodeResult
In certain cases the encoding is not known for sure (e.g.
-
Constructor Summary
Constructors Constructor Description EncodingPredictor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EncodingPredictor.DecodeResult
decode(byte[] bytes, int offset, int length)
-
-
-
Method Detail
-
decode
public static EncodingPredictor.DecodeResult decode(byte[] bytes, int offset, int length)
-
-