Thrown when serializing documents that contain characters not available in the current encoding, and which cannot be escaped (for instance, because they're in an element name or processing instruction data). This can never happen if the encoding is UTF-8 or UTF-16.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final long | |
| private final char |
| Access | Constructor and Description |
|---|---|
| public | UnavailableCharacterException(char
the character which caused the exception character, String the encoding which does not contain the character encoding)
Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public char | Returns: the character which caused the exceptionReturns the character which could not be written in the current encoding. |
| public String | Returns: the encoding used by the serializer when the exception was thrownReturns the encoding that does not support the character. |
| encoding | back to summary |
|---|---|
| private final String encoding | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| unavailableCharacter | back to summary |
|---|---|
| private final char unavailableCharacter | |
| UnavailableCharacterException | back to summary |
|---|---|
| public UnavailableCharacterException(char character, String encoding)
Creates a new
| |
| getCharacter | back to summary |
|---|---|
| public char getCharacter() Returns the character which could not be written in the current encoding.
| |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Returns the encoding that does not support the character.
| |