Package org.apache.fop.render
Class AbstractRendererMaker
java.lang.Object
org.apache.fop.render.AbstractRendererMaker
- Direct Known Subclasses:
AWTRendererMaker,PNGRendererMaker,PrintRendererMaker,TIFFRendererMaker,TXTRendererMaker,XMLRendererMaker
Base class for factory classes which instantiate Renderers and provide information
about them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidconfigureRenderer(FOUserAgent userAgent, Renderer renderer) Configures a given renderer using the appropriate configurator.abstract String[]booleanisMimeTypeSupported(String mimeType) Indicates whether a specific MIME type is supported by this renderer.abstract RenderermakeRenderer(FOUserAgent userAgent) Instantiates a new renderer.abstract boolean
-
Constructor Details
-
AbstractRendererMaker
public AbstractRendererMaker()
-
-
Method Details
-
makeRenderer
Instantiates a new renderer.- Parameters:
userAgent- the user agent- Returns:
- the newly instantiated renderer
-
needsOutputStream
public abstract boolean needsOutputStream()- Returns:
- Indicates whether this renderer requires an OutputStream to work with.
-
getSupportedMimeTypes
- Returns:
- an array of MIME types the renderer supports.
-
configureRenderer
public abstract void configureRenderer(FOUserAgent userAgent, Renderer renderer) throws FOPException Configures a given renderer using the appropriate configurator.- Parameters:
userAgent- user agentrenderer- the renderer that is to be configured- Throws:
FOPException
-
isMimeTypeSupported
Indicates whether a specific MIME type is supported by this renderer.- Parameters:
mimeType- the MIME type (ex. "application/pdf")- Returns:
- true if the MIME type is supported
-