Class AbstractRendererMaker

    • Constructor Detail

      • AbstractRendererMaker

        public AbstractRendererMaker()
    • Method Detail

      • makeRenderer

        public abstract Renderer makeRenderer​(FOUserAgent userAgent)
        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

        public abstract java.lang.String[] 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 agent
        renderer - the renderer that is to be configured
        Throws:
        FOPException
      • isMimeTypeSupported

        public boolean isMimeTypeSupported​(java.lang.String mimeType)
        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