org.apache.fop.render.afp.fonts
Class FontHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.apache.fop.render.afp.fonts.FontHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class FontHandler
extends org.xml.sax.helpers.DefaultHandler

This is the sax handler that will be responsible for parsing the font details held in afp-fonts.xml file which should reside on the classpath.


Field Summary
protected static org.apache.commons.logging.Log LOGGER
          Static logging instance
 
Constructor Summary
FontHandler(FontCollection fontCollection)
          Construct a new font handler for the specified collection.
 
Method Summary
 void endElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
           
 void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final org.apache.commons.logging.Log LOGGER
Static logging instance

Constructor Detail

FontHandler

public FontHandler(FontCollection fontCollection)
Construct a new font handler for the specified collection.

Parameters:
fontCollection - the font collection to populate
Method Detail

endElement

public void endElement(java.lang.String arg0,
                       java.lang.String arg1,
                       java.lang.String arg2)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.endElement(String, String, String)

startElement

public void startElement(java.lang.String uri,
                         java.lang.String name,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startElement(String, String, String, Attributes)