javax.swing.text
Class ChangedCharSetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
javax.swing.text.ChangedCharSetException
- All Implemented Interfaces:
- Serializable
public class ChangedCharSetException
- extends IOException
- implements Serializable
The exception is thrown when the document charset is changed.
- See Also:
- Serialized Form
Constructor Summary |
ChangedCharSetException(String charSetSpec,
boolean charSetKey)
Constructs a new char set exception with two additional parameters,
defining the circumstances under that the exception was raised. |
Method Summary |
String |
getCharSetSpec()
Get the value of the first parameter, previously passed to the
constructor. |
boolean |
keyEqualsCharSet()
Get the value of the second parameter, previously passed to the
constructor. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ChangedCharSetException
public ChangedCharSetException(String charSetSpec,
boolean charSetKey)
- Constructs a new char set exception with two additional parameters,
defining the circumstances under that the exception was raised.
getCharSetSpec
public String getCharSetSpec()
- Get the value of the first parameter, previously passed to the
constructor.
- Returns:
- the value of the first parameter
keyEqualsCharSet
public boolean keyEqualsCharSet()
- Get the value of the second parameter, previously passed to the
constructor.
- Returns:
- the value of the second parameter