Class FontListSerializer
java.lang.Object
org.apache.fop.tools.fontlist.FontListSerializer
Turns the font list into SAX events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Patternprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateSAX(SortedMap fontFamilies, String singleFamily, GenerationHelperContentHandler handler) Generates SAX events from the font damily map.voidgenerateSAX(SortedMap fontFamilies, GenerationHelperContentHandler handler) Generates SAX events from the font damily map.private voidgenerateXMLForFontContainers(GenerationHelperContentHandler handler, List containers) private voidgenerateXMLForTriplets(GenerationHelperContentHandler handler, Collection triplets) private StringstripQuotes(String name)
-
Field Details
-
FONTS
- See Also:
-
FAMILY
- See Also:
-
FONT
- See Also:
-
TRIPLETS
- See Also:
-
TRIPLET
- See Also:
-
NAME
- See Also:
-
STRIPPED_NAME
- See Also:
-
TYPE
- See Also:
-
KEY
- See Also:
-
STYLE
- See Also:
-
WEIGHT
- See Also:
-
CDATA
- See Also:
-
quotePattern
-
-
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
-
stripQuotes
-
generateXMLForFontContainers
private void generateXMLForFontContainers(GenerationHelperContentHandler handler, List containers) throws SAXException - Throws:
SAXException
-
generateXMLForTriplets
private void generateXMLForTriplets(GenerationHelperContentHandler handler, Collection triplets) throws SAXException - Throws:
SAXException
-