Class CharacterSetBuilder.DoubleByteLoader

  • Enclosing class:
    CharacterSetBuilder

    private static final class CharacterSetBuilder.DoubleByteLoader
    extends CharacterSetBuilder
    Double-byte (CID Keyed font (Type 0)) implementation of AFPFontReader.
    • Constructor Detail

      • DoubleByteLoader

        private DoubleByteLoader()
    • Method Detail

      • loadCodePage

        protected java.util.Map<java.lang.String,​java.lang.String> loadCodePage​(java.lang.String codePage,
                                                                                      java.lang.String encoding,
                                                                                      AFPResourceAccessor accessor,
                                                                                      AFPEventProducer eventProducer)
                                                                               throws java.io.IOException
        Description copied from class: CharacterSetBuilder
        Load the code page information from the appropriate file. The file name to load is determined by the code page name and the file extension 'CDP'.
        Overrides:
        loadCodePage in class CharacterSetBuilder
        Parameters:
        codePage - the code page identifier
        encoding - the encoding to use for the character decoding
        accessor - the resource accessor
        eventProducer - for handling AFP related events
        Returns:
        a code page mapping (key: GCGID, value: Unicode character)
        Throws:
        java.io.IOException - if an I/O exception of some sort has occurred.