类 CharsetUtil

java.lang.Object
com.sh.mail.mime4j.util.CharsetUtil

public class CharsetUtil extends Object

Description:

Title:首亨软件 - TSS/CRM等

从以下版本开始:
Aug 16, 2012
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    US-ASCII CR, carriage return (13)
    static final String
    carriage return - line feed sequence
    static final Charset
     
    static final int
    US-ASCII HT, horizontal-tab (9)
    static final Charset
     
    static final int
    US-ASCII LF, line feed (10)
    static final int
    US-ASCII SP, space (32)
    static final Charset
     
    static final Charset
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    isASCII(char ch)
    Returns true if the specified character falls into the US ASCII character set (Unicode range 0000 to 007f).
    static boolean
    Returns true if the specified string consists entirely of US ASCII characters.
    static boolean
    isWhitespace(char ch)
    Returns true if the specified character is a whitespace character (CR, LF, SP or HT).
    static boolean
    Returns true if the specified string consists entirely of whitespace characters.
    static Charset
    lookup(String name)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • CRLF

      public static final String CRLF
      carriage return - line feed sequence
      另请参阅:
    • CR

      public static final int CR
      US-ASCII CR, carriage return (13)
      另请参阅:
    • LF

      public static final int LF
      US-ASCII LF, line feed (10)
      另请参阅:
    • SP

      public static final int SP
      US-ASCII SP, space (32)
      另请参阅:
    • HT

      public static final int HT
      US-ASCII HT, horizontal-tab (9)
      另请参阅:
    • US_ASCII

      public static final Charset US_ASCII
    • ISO_8859_1

      public static final Charset ISO_8859_1
    • UTF_8

      public static final Charset UTF_8
    • DEFAULT_CHARSET

      public static final Charset DEFAULT_CHARSET
  • 构造器详细资料

    • CharsetUtil

      public CharsetUtil()
  • 方法详细资料

    • isASCII

      public static boolean isASCII(char ch)
      Returns true if the specified character falls into the US ASCII character set (Unicode range 0000 to 007f).
      参数:
      ch - character to test.
      返回:
      true if the specified character falls into the US ASCII character set, false otherwise.
    • isASCII

      public static boolean isASCII(String s)
      Returns true if the specified string consists entirely of US ASCII characters.
      参数:
      s - string to test.
      返回:
      true if the specified string consists entirely of US ASCII characters, false otherwise.
    • isWhitespace

      public static boolean isWhitespace(char ch)
      Returns true if the specified character is a whitespace character (CR, LF, SP or HT).
      参数:
      ch - character to test.
      返回:
      true if the specified character is a whitespace character, false otherwise.
    • isWhitespace

      public static boolean isWhitespace(String s)
      Returns true if the specified string consists entirely of whitespace characters.
      参数:
      s - string to test.
      返回:
      true if the specified string consists entirely of whitespace characters, false otherwise.
    • lookup

      public static Charset lookup(String name)