Module java.base
Package java.nio.charset

Class UnsupportedCharsetException

所有已实现的接口:
Serializable

public class UnsupportedCharsetException extends IllegalArgumentException
当请求的字符集不支持时抛出未经检查的异常。
自从:
1.4
参见:
  • Constructor Details

    • UnsupportedCharsetException

      public UnsupportedCharsetException(String charsetName)
      构造此类的实例。
      参数:
      charsetName - 不支持的字符集的名称
  • Method Details

    • getCharsetName

      public String getCharsetName()
      检索不支持的字符集的名称。
      返回:
      不支持的字符集的名称