模块  java.base
软件包  java.nio.charset

Class UnsupportedCharsetException

  • 实现的所有接口
    Serializable

    public class UnsupportedCharsetException
    extends IllegalArgumentException
    如果没有可用于请求的字符集的支持,则抛出未经检查的异常。
    从以下版本开始:
    1.4
    另请参见:
    Serialized Form
    • 构造方法详细信息

      • UnsupportedCharsetException

        public UnsupportedCharsetException​(String charsetName)
        构造此类的实例。
        参数
        charsetName - 不支持的字符集的名称
    • 方法详细信息

      • getCharsetName

        public String getCharsetName()
        检索不支持的charset的名称。
        结果
        不支持的字符集的名称