javax.swing.text

Class ChangedCharSetException

public class ChangedCharSetException extends IOException implements Serializable

The exception is thrown when the document charset is changed.
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
StringgetCharSetSpec()
Get the value of the first parameter, previously passed to the constructor.
booleankeyEqualsCharSet()
Get the value of the second parameter, previously passed to the constructor.

Constructor Detail

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.

Method Detail

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