Class FontListSerializer


  • public class FontListSerializer
    extends java.lang.Object
    Turns the font list into SAX events.
    • Constructor Detail

      • FontListSerializer

        public FontListSerializer()
    • Method Detail

      • generateSAX

        public void generateSAX​(java.util.SortedMap fontFamilies,
                                GenerationHelperContentHandler handler)
                         throws org.xml.sax.SAXException
        Generates SAX events from the font damily map.
        Parameters:
        fontFamilies - the font families
        handler - the target SAX handler
        Throws:
        org.xml.sax.SAXException - if an XML-related exception occurs
      • generateSAX

        public void generateSAX​(java.util.SortedMap fontFamilies,
                                java.lang.String singleFamily,
                                GenerationHelperContentHandler handler)
                         throws org.xml.sax.SAXException
        Generates SAX events from the font damily map.
        Parameters:
        fontFamilies - the font families
        singleFamily - if not null, the output will be filtered so only this single font family will be used
        handler - the target SAX handler
        Throws:
        org.xml.sax.SAXException - if an XML-related exception occurs
      • stripQuotes

        private java.lang.String stripQuotes​(java.lang.String name)
      • generateXMLForFontContainers

        private void generateXMLForFontContainers​(GenerationHelperContentHandler handler,
                                                  java.util.List containers)
                                           throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • generateXMLForTriplets

        private void generateXMLForTriplets​(GenerationHelperContentHandler handler,
                                            java.util.Collection triplets)
                                     throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException