From f11bad903dbef3d04d48b3a219fb0adb139ce953 Mon Sep 17 00:00:00 2001 From: fotis Date: Tue, 27 Jun 2000 22:14:35 +0000 Subject: 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 --- src/org/apache/fop/pdf/PDFPages.java | 3 ++- src/org/apache/fop/pdf/PDFXObject.java | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/org/apache/fop/pdf') 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; } -- cgit v1.2.3