com.saxonica.serialize
Class HTMLEntityReferenceGenerator

java.lang.Object
  extended by com.saxonica.serialize.HTMLEntityReferenceGenerator
All Implemented Interfaces:
CharacterReferenceGenerator

public class HTMLEntityReferenceGenerator
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
static HTMLEntityReferenceGenerator DECIMAL
           
static HTMLEntityReferenceGenerator HEX
           
 
Method Summary
 void outputCharacterReference(int c, Writer writer)
          Generate a character reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEX

public static final HTMLEntityReferenceGenerator HEX

DECIMAL

public static final HTMLEntityReferenceGenerator DECIMAL
Method Detail

outputCharacterReference

public void outputCharacterReference(int c,
                                     Writer writer)
                              throws IOException
Description copied from interface: CharacterReferenceGenerator
Generate a character reference

Specified by:
outputCharacterReference in interface CharacterReferenceGenerator
Parameters:
c - the unicode code point of the character concerned
writer - the Writer to which the character reference is to be written
Throws:
IOException - if the Writer reports an error


Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.