类 CharsetUtil
java.lang.Object
com.sh.mail.mime4j.util.CharsetUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- Aug 16, 2012
-
字段概要
字段修饰符和类型字段说明static final intUS-ASCII CR, carriage return (13)static final Stringcarriage return - line feed sequencestatic final Charsetstatic final intUS-ASCII HT, horizontal-tab (9)static final Charsetstatic final intUS-ASCII LF, line feed (10)static final intUS-ASCII SP, space (32)static final Charsetstatic final Charset -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisASCII(char ch) Returnstrueif the specified character falls into the US ASCII character set (Unicode range 0000 to 007f).static booleanReturnstrueif the specified string consists entirely of US ASCII characters.static booleanisWhitespace(char ch) Returnstrueif the specified character is a whitespace character (CR, LF, SP or HT).static booleanReturnstrueif the specified string consists entirely of whitespace characters.static Charset
-
字段详细资料
-
CRLF
carriage return - line feed sequence- 另请参阅:
-
CR
public static final int CRUS-ASCII CR, carriage return (13)- 另请参阅:
-
LF
public static final int LFUS-ASCII LF, line feed (10)- 另请参阅:
-
SP
public static final int SPUS-ASCII SP, space (32)- 另请参阅:
-
HT
public static final int HTUS-ASCII HT, horizontal-tab (9)- 另请参阅:
-
US_ASCII
-
ISO_8859_1
-
UTF_8
-
DEFAULT_CHARSET
-
-
构造器详细资料
-
CharsetUtil
public CharsetUtil()
-
-
方法详细资料
-
isASCII
public static boolean isASCII(char ch) Returnstrueif the specified character falls into the US ASCII character set (Unicode range 0000 to 007f).- 参数:
ch- character to test.- 返回:
trueif the specified character falls into the US ASCII character set,falseotherwise.
-
isASCII
Returnstrueif the specified string consists entirely of US ASCII characters.- 参数:
s- string to test.- 返回:
trueif the specified string consists entirely of US ASCII characters,falseotherwise.
-
isWhitespace
public static boolean isWhitespace(char ch) Returnstrueif the specified character is a whitespace character (CR, LF, SP or HT).- 参数:
ch- character to test.- 返回:
trueif the specified character is a whitespace character,falseotherwise.
-
isWhitespace
Returnstrueif the specified string consists entirely of whitespace characters.- 参数:
s- string to test.- 返回:
trueif the specified string consists entirely of whitespace characters,falseotherwise.
-
lookup
-