Package net.sf.saxon.serialize
Class HexCharacterReferenceGenerator
- java.lang.Object
-
- net.sf.saxon.serialize.HexCharacterReferenceGenerator
-
- All Implemented Interfaces:
CharacterReferenceGenerator
public class HexCharacterReferenceGenerator extends java.lang.Object implements CharacterReferenceGenerator
A class that represents a character as a hexadecimal character reference and writes the result to a supplied Writer
-
-
Field Summary
Fields Modifier and Type Field Description static HexCharacterReferenceGenerator
THE_INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
outputCharacterReference(int charval, UnicodeWriter writer)
Generate a character reference
-
-
-
Field Detail
-
THE_INSTANCE
public static final HexCharacterReferenceGenerator THE_INSTANCE
-
-
Method Detail
-
outputCharacterReference
public void outputCharacterReference(int charval, UnicodeWriter writer) throws java.io.IOException
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:
java.io.IOException
- if the Writer reports an error
-
-