Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 475
نمايش فراداده

IllegalCharsetNameExceptionjava.nio.charset

Java 1.4serializable unchecked

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 ( ); }