javax.swing.text
Class ChangedCharSetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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