diff options
author | fotis <fotis@unknown> | 2000-06-27 22:14:35 +0000 |
---|---|---|
committer | fotis <fotis@unknown> | 2000-06-27 22:14:35 +0000 |
commit | f11bad903dbef3d04d48b3a219fb0adb139ce953 (patch) | |
tree | e941d36bfd0fd6da736eb02c3e42ac84066d1a84 /src/org/apache/fop/pdf | |
parent | 7724f41ad6e9e484f9a37b54b6a63fe3cb9c90ef (diff) | |
download | xmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.tar.gz xmlgraphics-fop-f11bad903dbef3d04d48b3a219fb0adb139ce953.zip |
replaces calls of System.err.println etc. with calls to the new MessageHandler methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193441 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf')
-rw-r--r-- | src/org/apache/fop/pdf/PDFPages.java | 3 | ||||
-rw-r--r-- | src/org/apache/fop/pdf/PDFXObject.java | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/org/apache/fop/pdf/PDFPages.java b/src/org/apache/fop/pdf/PDFPages.java index 70b63b23c..b707660dc 100644 --- a/src/org/apache/fop/pdf/PDFPages.java +++ b/src/org/apache/fop/pdf/PDFPages.java @@ -52,6 +52,7 @@ package org.apache.fop.pdf; // Java import java.io.PrintWriter; +import org.apache.fop.messaging.MessageHandler; import java.util.Vector; /** @@ -107,7 +108,7 @@ public class PDFPages extends PDFObject { */ public void incrementCount() { this.count++; - // System.out.println("Incrementing count to " + this.getCount()); + // MessageHandler.logln("Incrementing count to " + this.getCount()); } /** diff --git a/src/org/apache/fop/pdf/PDFXObject.java b/src/org/apache/fop/pdf/PDFXObject.java index f311bbb3b..039f28ea1 100644 --- a/src/org/apache/fop/pdf/PDFXObject.java +++ b/src/org/apache/fop/pdf/PDFXObject.java @@ -55,6 +55,7 @@ package org.apache.fop.pdf; // Java import java.io.IOException; +import org.apache.fop.messaging.MessageHandler; import java.io.PrintWriter; // FOP @@ -83,7 +84,7 @@ public class PDFXObject extends PDFObject { super(number); this.Xnum=Xnumber; if (img == null) - System.err.println("FISH"); + MessageHandler.errorln("FISH"); fopimage=img; } @@ -137,9 +138,9 @@ public class PDFXObject extends PDFObject { writer.write(p); length += p.length(); } catch (FopImageException imgex) { -System.err.println("Error in XObject : " + imgex.getMessage()); +MessageHandler.errorln("Error in XObject : " + imgex.getMessage()); } catch (PDFFilterException filterex) { -System.err.println("Error in XObject : " + filterex.getMessage()); +MessageHandler.errorln("Error in XObject : " + filterex.getMessage()); } return length; } |