KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > text > ChangedCharSetException


1 /*
2  * @(#)ChangedCharSetException.java 1.8 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package javax.swing.text;
8
9 import java.io.IOException JavaDoc;
10
11 /**
12  * ChangedCharSetException as the name indicates is an exception
13  * thrown when the charset is changed.
14  *
15  * @author Sunita Mani
16  * 1.8, 12/19/03
17  */

18 public class ChangedCharSetException extends IOException JavaDoc {
19
20     String JavaDoc charSetSpec;
21     boolean charSetKey;
22
23     public ChangedCharSetException(String JavaDoc charSetSpec, boolean charSetKey) {
24     this.charSetSpec = charSetSpec;
25     this.charSetKey = charSetKey;
26     }
27
28     public String JavaDoc getCharSetSpec() {
29     return charSetSpec;
30     }
31
32     public boolean keyEqualsCharSet() {
33     return charSetKey;
34     }
35
36 }
37
Popular Tags