Name

UnsupportedCharsetException

Synopsis

Signals that the requested charset is not supported on the current platform. This exception is thrown by Charset.forName( ) when no Charset object can be obtained for the named charset. See also Charset.isSupported( ).

java.nio.charset.UnsupportedCharsetException

Figure 13-53. java.nio.charset.UnsupportedCharsetException

public class UnsupportedCharsetException extends IllegalArgumentException {
// Public Constructors
     public UnsupportedCharsetException(String charsetName);  
// Public Instance Methods
     public String getCharsetName( ); 
 
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.