public class CharsetMappingUtil
extends java.lang.Object
说明:CharsetMappingUtil 类是线程安全的,可在多个线程中使用同一个实例。
| 构造器和说明 |
|---|
CharsetMappingUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.nio.charset.Charset |
getJavaCharset(int mysqlCharacterId)
根据 Mysql 字符集编码 ID 获得对应的 Java 字符集编码,该方法不会返回
null。 |
static int |
getMaxBytesPerChar(int mysqlCharacterId)
获得该 Mysql 字符集编码存储单个字符需要的最大字节数。
|
static boolean |
isCaseSensitive(int mysqlCharacterId)
判断该 Mysql 字符集编码是否区分大小写。
|
public static boolean isCaseSensitive(int mysqlCharacterId)
mysqlCharacterId - Mysql 字符集编码 IDpublic static int getMaxBytesPerChar(int mysqlCharacterId)
mysqlCharacterId - Mysql 字符集编码 IDpublic static java.nio.charset.Charset getJavaCharset(int mysqlCharacterId)
null。mysqlCharacterId - Mysql 字符集编码 IDnullCopyright © 2019. All Rights Reserved.