diff options
author | Simon Pepping <spepping@apache.org> | 2004-07-09 17:27:12 +0000 |
---|---|---|
committer | Simon Pepping <spepping@apache.org> | 2004-07-09 17:27:12 +0000 |
commit | d04908a05ef64a2850289f6817125bd8a02c9088 (patch) | |
tree | d061c12afadde065aacd2f067490e7af033b6bc9 /src/java/org/apache/fop/render | |
parent | f7ebe087cfc59cf9ff28e7f458e2e4f21f9770e9 (diff) | |
download | xmlgraphics-fop-d04908a05ef64a2850289f6817125bd8a02c9088.tar.gz xmlgraphics-fop-d04908a05ef64a2850289f6817125bd8a02c9088.zip |
Implementing user configuration file.
Adding debug logging for user configuration, user PDF filters and user
fonts.
Adding reporting of mime type to renderers.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/AbstractRenderer.java | 11 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFRenderer.java | 5 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRenderer.java | 5 |
3 files changed, 20 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java index 813cbf90c..7f47a6d14 100644 --- a/src/java/org/apache/fop/render/AbstractRenderer.java +++ b/src/java/org/apache/fop/render/AbstractRenderer.java @@ -87,7 +87,7 @@ public abstract class AbstractRenderer /** * logging instance */ - protected static Log logger = LogFactory.getLog("FOP"); + protected static Log logger = LogFactory.getLog("org.apache.fop.render"); /** * block progression position @@ -724,5 +724,14 @@ public abstract class AbstractRenderer + "No handler defined for XML: " + namespace); } } + + /** + * Get the MIME type of the renderer. + * + * @return The MIME type of the renderer + */ + public String getMimeType() { + return null; + } } diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java index a9cd5608a..73cfe9685 100644 --- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java @@ -1343,5 +1343,10 @@ public class PDFRenderer extends PrintRenderer { beginTextObject(); super.renderLeader(area); } + + /** @see org.apache.fop.render.AbstractRenderer */ + public String getMimeType() { + return MIME_TYPE; + } } diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java index a3d4aabe4..904a1183c 100644 --- a/src/java/org/apache/fop/render/ps/PSRenderer.java +++ b/src/java/org/apache/fop/render/ps/PSRenderer.java @@ -838,4 +838,9 @@ public class PSRenderer extends AbstractRenderer { renderXML(userAgent, context, doc, ns); } + /** @see org.apache.fop.render.AbstractRenderer */ + public String getMimeType() { + return MIME_TYPE; + } + } |