KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > nio > charset > IllegalCharsetNameException


1 /*
2  * @(#)IllegalCharsetNameException.java 1.2 01/09/17
3  *
4  * Copyright 2000 by Sun Microsystems, Inc. All Rights Reserved.
5  *
6  * This software is the proprietary information of Sun Microsystems, Inc.
7  * Use is subject to license terms.
8  */

9
10 // -- This file was mechanically generated: Do not edit! -- //
11

12 package java.nio.charset;
13
14
15 /**
16  * Unchecked exception thrown when a string that is not a
17  * <a HREF=Charset.html#names>legal charset name</a> is used as such.
18  *
19  * @version 1.2, 01/09/17
20  * @since 1.4
21  */

22
23 public class IllegalCharsetNameException
24     extends IllegalArgumentException JavaDoc
25 {
26
27     private String JavaDoc charsetName;
28
29     /**
30      * Constructs an instance of this class. </p>
31      *
32      * @param charsetName
33      * The illegal charset name
34      */

35     public IllegalCharsetNameException(String JavaDoc charsetName) {
36         super(String.valueOf(charsetName));
37     this.charsetName = charsetName;
38     }
39
40     /**
41      * Retrieves the illegal charset name. </p>
42      *
43      * @return The illegal charset name
44      */

45     public String JavaDoc getCharsetName() {
46         return charsetName;
47     }
48
49 }
50
Popular Tags