SourceForge.net Logo
aXSL API 0.1

org.axsl.fontR.output
Interface FontOutputFactory


public interface FontOutputFactory

Implementations of this interface create FontOutput implementations. aXSL does not expose any methods to obtain implementations of this class. They are used exclusively by the implementation to create FontOutput implementations. However client applications that wish to provide implementations of FontOutputFactory for custom mime-types may create such implementations and register them using FontServer.registerFontOutputFactory(FontOutputFactory).


Method Summary
 FontOutput createFontOutput(FontUse fontUse)
          Create a FontOutput implementation.
 java.lang.String getMimeType()
          Returns the mime-type for this factory.
 

Method Detail

createFontOutput

public FontOutput createFontOutput(FontUse fontUse)
                            throws FontException
Create a FontOutput implementation. This method is not intended for use by client applications. It is to be used only by FontUse implementations if they do not already have a FontOutput for the desired mime type. Client applications that need a FontOutput instance should instead use FontUse.getFontOutput(String).

Parameters:
fontUse - The FontUse implementation for whom the FontOutput should be created.
Returns:
A FontOutput implementation suitable for this factory's mime type.
Throws:
FontException - For errors during creation of the FontOutput instance.
See Also:
FontUse.getFontOutput(String)

getMimeType

public java.lang.String getMimeType()
Returns the mime-type for this factory.

Returns:
The mime type for which this factory generates FontOutput instances. For example, a FontOutputFactory returning FontOutput instances for use with PDF (Portable Document Format) should return "application/pdf". See the Internet Assigned Numbers Authority MIME Media Types directory for a complete list of mime-types.

SourceForge.net Logo
aXSL API 0.1

This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.