aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-10-10 11:30:24 +0000
committerJeremias Maerki <jeremias@apache.org>2004-10-10 11:30:24 +0000
commita7a0ccdd6398ccd73f19d41d3e829eded6958c2f (patch)
tree92b53140f13bc219f54babf4e16fd47c1e6cedc3 /src/java/org/apache/fop
parent530c9e0e74b2bc440047e2d98250a46f71c9a6bc (diff)
downloadxmlgraphics-fop-a7a0ccdd6398ccd73f19d41d3e829eded6958c2f.tar.gz
xmlgraphics-fop-a7a0ccdd6398ccd73f19d41d3e829eded6958c2f.zip
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.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198023 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/render/Renderer.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/Renderer.java b/src/java/org/apache/fop/render/Renderer.java
index febc8b39d..ff1cb0a6b 100644
--- a/src/java/org/apache/fop/render/Renderer.java
+++ b/src/java/org/apache/fop/render/Renderer.java
@@ -53,6 +53,13 @@ public interface Renderer {
/**
+ * 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