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. import java.io.IOException;
  9. /**
  10. * ChangedCharSetException as the name indicates is an exception
  11. * thrown when the charset is changed.
  12. *
  13. * @author Sunita Mani
  14. * 1.8, 12/19/03
  15. */
  16. public class ChangedCharSetException extends IOException {
  17. String charSetSpec;
  18. boolean charSetKey;
  19. public ChangedCharSetException(String charSetSpec, boolean charSetKey) {
  20. this.charSetSpec = charSetSpec;
  21. this.charSetKey = charSetKey;
  22. }
  23. public String getCharSetSpec() {
  24. return charSetSpec;
  25. }
  26. public boolean keyEqualsCharSet() {
  27. return charSetKey;
  28. }
  29. }