]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed AbstractRenderer.getMimeType() as per Vincent's suggestion.
authorJeremias Maerki <jeremias@apache.org>
Fri, 3 Apr 2009 10:14:20 +0000 (10:14 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 3 Apr 2009 10:14:20 +0000 (10:14 +0000)
Moved getMimeType() implementation from PrintRenderer to PageableRenderer.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@761596 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/AbstractRenderer.java
src/java/org/apache/fop/render/print/PageableRenderer.java
src/java/org/apache/fop/render/print/PrintRenderer.java

index 0c324a0be5d8a560a1ac63dc36e63beebf8775d4..ed7682221a8f600c4898f351d8dfabd150a8d041 100644 (file)
@@ -827,15 +827,6 @@ public abstract class AbstractRenderer
         }
     }
 
-    /**
-     * Get the MIME type of the renderer.
-     *
-     * @return   The MIME type of the renderer
-     */
-    public String getMimeType() {
-        return null;
-    }
-
     /**
      * Converts a millipoint-based transformation matrix to points.
      * @param at a millipoint-based transformation matrix
index 01a60646b150a6ae9c61d2ec158b04beab6fb385..89ab980710969da3f47cdb61c9cc38cc14cfa445 100644 (file)
@@ -29,6 +29,7 @@ import java.util.Map;
 
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.MimeConstants;
 import org.apache.fop.area.PageViewport;
 import org.apache.fop.render.java2d.Java2DRenderer;
 
@@ -75,6 +76,11 @@ public class PageableRenderer extends Java2DRenderer implements Pageable {
     public PageableRenderer() {
     }
 
+    /** {@inheritDoc} */
+    public String getMimeType() {
+        return MimeConstants.MIME_FOP_PRINT;
+    }
+
     /** {@inheritDoc} */
     public void setUserAgent(FOUserAgent agent) {
         super.setUserAgent(agent);
index 315c12cf1946576059cb9351114943d66122a434..2eb2b07a2565d9d639d0514ac65134ca8655868a 100644 (file)
@@ -25,7 +25,6 @@ import java.io.IOException;
 import java.util.Map;
 
 import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.apps.MimeConstants;
 
 /**
  * Renderer that prints through java.awt.PrintJob.
@@ -71,11 +70,6 @@ public class PrintRenderer extends PageableRenderer {
         printerJob.setPageable(this);
     }
 
-    /** {@inheritDoc} */
-    public String getMimeType() {
-        return MimeConstants.MIME_FOP_PRINT;
-    }
-
     private void initializePrinterJob() {
         if (this.printerJob == null) {
             printerJob = PrinterJob.getPrinterJob();