1. /*
  2. * @(#)ChangedCharSetException.java 1.5 00/02/02
  3. *
  4. * Copyright 1997-2000 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. package javax.swing.text;
  11. import java.io.IOException;
  12. /**
  13. * ChangedCharSetException as the name indicates is an exception
  14. * thrown when the charset is changed.
  15. *
  16. * @author Sunita Mani
  17. * 1.5, 02/02/00
  18. */
  19. public class ChangedCharSetException extends IOException {
  20. String charSetSpec;
  21. boolean charSetKey;
  22. public ChangedCharSetException(String charSetSpec, boolean charSetKey) {
  23. this.charSetSpec = charSetSpec;
  24. this.charSetKey = charSetKey;
  25. }
  26. public String getCharSetSpec() {
  27. return charSetSpec;
  28. }
  29. public boolean keyEqualsCharSet() {
  30. return charSetKey;
  31. }
  32. }