Most visited

Recently visited

Added in API level 1

UnsupportedCharsetException

public class UnsupportedCharsetException
extends IllegalArgumentException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalArgumentException
           ↳ java.nio.charset.UnsupportedCharsetException


Unchecked exception thrown when no support is available for a requested charset.

Summary

Public constructors

UnsupportedCharsetException(String charsetName)

Constructs an instance of this class.

Public methods

String getCharsetName()

Retrieves the name of the unsupported charset.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

UnsupportedCharsetException

Added in API level 1
UnsupportedCharsetException (String charsetName)

Constructs an instance of this class.

Parameters
charsetName String: The name of the unsupported charset

Public methods

getCharsetName

Added in API level 1
String getCharsetName ()

Retrieves the name of the unsupported charset.

Returns
String The name of the unsupported charset

Hooray!