public class UnavailableCharacterException extends XMLException
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.
Constructor and Description |
---|
UnavailableCharacterException(char character,
String encoding)
Creates a new
UnavailableCharacterException . |
Modifier and Type | Method and Description |
---|---|
char | getCharacter()
Returns the character which could not be written
in the current encoding.
|
String | getEncoding()
Returns the encoding that does not support the character.
|
getCause, initCause
public UnavailableCharacterException(char character, String encoding)
Creates a new UnavailableCharacterException
.
character
- the character which caused the exceptionencoding
- the encoding which does not contain the characterpublic char getCharacter()
Returns the character which could not be written in the current encoding.
public String getEncoding()
Returns the encoding that does not support the character.
Copyright 2002-2023 Elliotte Rusty Harold
elharo@ibiblio.org