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

Public constructors

UnsupportedCharsetException

Added in API level 1
public 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
public String getCharsetName ()

Retrieves the name of the unsupported charset.

Returns
String The name of the unsupported charset