diff options
author | Keiron Liddle <keiron@apache.org> | 2000-07-24 06:49:42 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2000-07-24 06:49:42 +0000 |
commit | ccc6662655ee0bfeffb1f0237b41a672bb9aa484 (patch) | |
tree | 800e5e030f6a95a186478489d27e77552c4de632 /src/org/apache/fop | |
parent | ec19803d8a6d25acd7266ae442be1d33351d96a0 (diff) | |
download | xmlgraphics-fop-ccc6662655ee0bfeffb1f0237b41a672bb9aa484.tar.gz xmlgraphics-fop-ccc6662655ee0bfeffb1f0237b41a672bb9aa484.zip |
uses message handler to report errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193555 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r-- | src/org/apache/fop/datatypes/StyleData.java | 5 | ||||
-rw-r--r-- | src/org/apache/fop/datatypes/TransformData.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/dom/svg/SVGLengthImpl.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/dom/svg/SVGLengthListImpl.java | 5 |
4 files changed, 10 insertions, 6 deletions
diff --git a/src/org/apache/fop/datatypes/StyleData.java b/src/org/apache/fop/datatypes/StyleData.java index 0fde4bbbf..0a0b993e1 100644 --- a/src/org/apache/fop/datatypes/StyleData.java +++ b/src/org/apache/fop/datatypes/StyleData.java @@ -51,6 +51,7 @@ package org.apache.fop.datatypes; import org.apache.fop.fo.Property; +import org.apache.fop.messaging.MessageHandler; import org.apache.fop.dom.svg.*; @@ -175,10 +176,10 @@ public class StyleData { } else if(type.equals("stroke-antialiasing")) { // boolean } else { - System.err.println("WARNING Unknown style element : " + type); + MessageHandler.logln("WARNING: Unknown style element : " + type); } } else { - System.err.println("WARNING Invalid style element " + str); + MessageHandler.errorln("ERROR: Invalid style element " + str); } } } diff --git a/src/org/apache/fop/datatypes/TransformData.java b/src/org/apache/fop/datatypes/TransformData.java index 8cbacce34..6fb69d764 100644 --- a/src/org/apache/fop/datatypes/TransformData.java +++ b/src/org/apache/fop/datatypes/TransformData.java @@ -51,6 +51,7 @@ package org.apache.fop.datatypes; import org.apache.fop.fo.Property; +import org.apache.fop.messaging.MessageHandler; import org.apache.fop.dom.svg.*; import org.apache.fop.dom.svg.SVGTransformImpl; @@ -238,7 +239,7 @@ public class TransformData { transform.setMatrix(matrix); list.addElement(transform); } else { - System.err.println("WARNING Unknown Transform type : " + type); + MessageHandler.errorln("WARNING: Unknown Transform type : " + type); } } } diff --git a/src/org/apache/fop/dom/svg/SVGLengthImpl.java b/src/org/apache/fop/dom/svg/SVGLengthImpl.java index 4b95233f2..3cbae2aaf 100644 --- a/src/org/apache/fop/dom/svg/SVGLengthImpl.java +++ b/src/org/apache/fop/dom/svg/SVGLengthImpl.java @@ -51,6 +51,7 @@ package org.apache.fop.dom.svg; import org.apache.fop.fo.Property; +import org.apache.fop.messaging.MessageHandler; import java.util.*; @@ -190,7 +191,7 @@ public class SVGLengthImpl implements SVGLength { } catch (Exception e) { dvalue = 0; unitType = SVG_LENGTHTYPE_UNKNOWN; - System.err.println("ERROR: unknown length units in " + len); + MessageHandler.errorln("ERROR: unknown length units in " + len); } return dvalue; } diff --git a/src/org/apache/fop/dom/svg/SVGLengthListImpl.java b/src/org/apache/fop/dom/svg/SVGLengthListImpl.java index 018820f5e..215493212 100644 --- a/src/org/apache/fop/dom/svg/SVGLengthListImpl.java +++ b/src/org/apache/fop/dom/svg/SVGLengthListImpl.java @@ -51,6 +51,7 @@ package org.apache.fop.dom.svg; import org.apache.fop.fo.Property; +import org.apache.fop.messaging.MessageHandler; import java.util.*; @@ -96,7 +97,7 @@ public class SVGLengthListImpl extends SVGListImpl implements SVGLengthList { int l = len.length(); if (l == 0) { - System.err.println("WARNING: empty length"); + MessageHandler.errorln("WARNING: empty length"); this.millipoints = 0; } else { // could be an array of points, as in for svg:text @@ -154,7 +155,7 @@ public class SVGLengthListImpl extends SVGListImpl implements SVGLengthList { } } catch (Exception e) { dvalue = 0; - System.err.println("ERROR: unknown length units in " + len); + MessageHandler.errorln("ERROR: unknown length units in " + len); } return dvalue; } |