Package org.apache.fop.tools.fontlist
Class FontListSerializer
java.lang.Object
org.apache.fop.tools.fontlist.FontListSerializer
Turns the font list into SAX events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateSAX
(SortedMap fontFamilies, String singleFamily, GenerationHelperContentHandler handler) Generates SAX events from the font damily map.void
generateSAX
(SortedMap fontFamilies, GenerationHelperContentHandler handler) Generates SAX events from the font damily map.
-
Constructor Details
-
FontListSerializer
public FontListSerializer()
-
-
Method Details
-
generateSAX
public void generateSAX(SortedMap fontFamilies, GenerationHelperContentHandler handler) throws SAXException Generates SAX events from the font damily map.- Parameters:
fontFamilies
- the font familieshandler
- the target SAX handler- Throws:
SAXException
- if an XML-related exception occurs
-
generateSAX
public void generateSAX(SortedMap fontFamilies, String singleFamily, GenerationHelperContentHandler handler) throws SAXException Generates SAX events from the font damily map.- Parameters:
fontFamilies
- the font familiessingleFamily
- if not null, the output will be filtered so only this single font family will be usedhandler
- the target SAX handler- Throws:
SAXException
- if an XML-related exception occurs
-