Team LiB
Previous Section Next Section

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

    Team LiB
    Previous Section Next Section