Jeremias: Why does the FOEventHandler need to know the MIME type supported by a Renderer? It hasn't been requesting it. The "primary key" of the Renderer is its constants value in fo.Constants, and the FOEventHandler has already chosen the renderer based on this value by this time.

What additional functionality are you trying to add to the next release as a result of this change?



jeremias    2004/10/10 04:30:24

Modified: src/java/org/apache/fop/render
Add getMimeType() to the Renderer interface as AbstractRenderer implements this anyway. Renderers such as Java2D/AWT (where a MIME type is not applicable) will return null.
Revision Changes Path
1.16 +7 -0 xml-fop/src/java/org/apache/fop/render/
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- 25 Sep 2004 21:55:36 -0000 1.15
+++ 10 Oct 2004 11:30:24 -0000 1.16
@@ -53,6 +53,13 @@
+ * Get the MIME type of the renderer.
+ * + * @return The MIME type of the renderer, may return null if not applicable.
+ */
+ String getMimeType();
+ /**
* Initiates the rendering phase.
* This must only be called once for a rendering. If
* stopRenderer is called then this may be called again

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to