| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
RuntimeException
nu.xom.XMLException
nu.xom.UnavailableCharacterException
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 Summary | |
UnavailableCharacterException(char character,
String encoding)
Creates a new UnavailableCharacterException . |
Method Summary | |
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. |
Methods inherited from class nu.xom.XMLException |
getCause, initCause |
Methods inherited from class Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnavailableCharacterException(char character,
String encoding)
Creates a new UnavailableCharacterException
.
character
- the character which caused the exceptionencoding
- the encoding which does not contain the characterMethod Detail |
public 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.
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |