Name
IllegalCharsetNameException
Synopsis
Signals
that
a charset name (for example one passed to Charset.forName(
)
or Charset.isSupported( )
) is not
legal. Charset names may contain only the characters A-Z (in upper-
and lowercase), the digits 0-9, and hyphens, underscores, colons, and
periods. They must begin with a letter or a digit, not with a
punctuation character.
Figure 13-50. java.nio.charset.IllegalCharsetNameException
public class IllegalCharsetNameException extends IllegalArgumentException { // Public Constructors public IllegalCharsetNameException(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.