nu.xom
Class UnavailableCharacterException
public class 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.
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.
|
UnavailableCharacterException
public UnavailableCharacterException(char character,
String encoding)
Creates a new UnavailableCharacterException
.
character
- the character which caused the exceptionencoding
- the encoding which does not contain the character
getCharacter
public char getCharacter()
Returns the character which could not be written
in the current encoding.
- the character which caused the exception
getEncoding
public String getEncoding()
Returns the encoding that does not support the character.
- the encoding used by the serializer when the exception
was thrown
Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu