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?

Glen


[EMAIL PROTECTED] schrieb:

jeremias    2004/10/10 04:30:24

Modified: src/java/org/apache/fop/render Renderer.java
Log:
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/Renderer.java
Index: Renderer.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/Renderer.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Renderer.java 25 Sep 2004 21:55:36 -0000 1.15
+++ Renderer.java 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