Package com.saxonica.serialize
Class DecimalCharacterReferenceGenerator
java.lang.Object
com.saxonica.serialize.DecimalCharacterReferenceGenerator
- All Implemented Interfaces:
CharacterReferenceGenerator
public class DecimalCharacterReferenceGenerator
extends Object
implements CharacterReferenceGenerator
A class that represents a character as a decimal character reference and writes
the result to a supplied Writer.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
outputCharacterReference
(int charval, UnicodeWriter writer) Generate a character reference
-
Field Details
-
THE_INSTANCE
-
-
Method Details
-
outputCharacterReference
Description copied from interface:CharacterReferenceGenerator
Generate a character reference- Specified by:
outputCharacterReference
in interfaceCharacterReferenceGenerator
- Parameters:
charval
- the unicode code point of the character concernedwriter
- the Writer to which the character reference is to be written- Throws:
IOException
- if the Writer reports an error
-