KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)UnsupportedCharsetException.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 no support is available
17  * for a requested charset.
18  *
19  * @version 1.2, 01/09/17
20  * @since 1.4
21  */

22
23 public class UnsupportedCharsetException
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 name of the unsupported charset
34      */

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

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