Class CharsetUtil
java.lang.Object
com.sure.tool.util.CharsetUtil
字符集工具类,参考 Hutool 的
CharsetUtil 设计。
English: Charset lookup and encoding/decoding helpers.
- Since:
- 0.1.0
- Author:
- suretool
-
Field Details
-
UTF_8
UTF-8 -
GBK
GBK -
ISO_8859_1
ISO-8859-1 -
US_ASCII
US-ASCII -
UTF_16
UTF-16 -
UTF_16BE
UTF-16BE -
UTF_16LE
UTF-16LE
-
-
Method Details
-
charset
-
convert
-
convert
-
isSupported
字符集是否被支持。- Parameters:
charsetName- 字符集名- Returns:
- 是否支持
-
defaultCharset
-