Package com.saxonica.serialize
Class HTMLEntityReferenceGenerator
- java.lang.Object
-
- com.saxonica.serialize.HTMLEntityReferenceGenerator
-
- All Implemented Interfaces:
CharacterReferenceGenerator
public class HTMLEntityReferenceGenerator extends java.lang.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 Modifier and Type Field Description static HTMLEntityReferenceGeneratorDECIMALstatic HTMLEntityReferenceGeneratorHEX
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoutputCharacterReference(int c, java.io.Writer writer)Generate a character reference
-
-
-
Field Detail
-
HEX
public static final HTMLEntityReferenceGenerator HEX
-
DECIMAL
public static final HTMLEntityReferenceGenerator DECIMAL
-
-
Method Detail
-
outputCharacterReference
public void outputCharacterReference(int c, java.io.Writer writer) throws java.io.IOExceptionDescription copied from interface:CharacterReferenceGeneratorGenerate a character reference- Specified by:
outputCharacterReferencein interfaceCharacterReferenceGenerator- Parameters:
c- 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
-
-