net.sf.saxon.serialize

## Interface CharacterReferenceGenerator

- All Known Implementing Classes:
    DecimalCharacterReferenceGenerator, HexCharacterReferenceGenerator, HTMLEntityReferenceGenerator

      public interface CharacterReferenceGenerator

  A class that expands a character to a character reference, entity reference, etc, and writes the resulting reference to a writer

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `outputCharacterReference(int charval, Writer writer)` Generate a character reference

- - ### Method Detail

    - #### outputCharacterReference

          void outputCharacterReference(int charval,
                                      Writer writer)
                                        throws IOException

      Generate a character reference
      Parameters:
        `charval` - 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-2013 Saxonica Limited. All rights reserved.