From 61db9112e1cd4373071f937ab8226a8a0cbcdfc4 Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Wed, 24 May 2000 08:02:40 +0000 Subject: [PATCH] throw an explicit exception message when the image file is unavailable git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193383 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/JimiImage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/image/JimiImage.java b/src/org/apache/fop/image/JimiImage.java index b2132386c..681e7549a 100644 --- a/src/org/apache/fop/image/JimiImage.java +++ b/src/org/apache/fop/image/JimiImage.java @@ -61,7 +61,7 @@ import org.apache.fop.pdf.PDFFilter; // Java import java.util.Hashtable; import java.net.URL; -import java.io.IOException; +import java.io.*; //import java.io.PrintWriter; import java.awt.image.*; import java.awt.*; @@ -95,7 +95,7 @@ public class JimiImage implements FopImage { protected void getImage() throws FopImageException { int[] tmpMap = null; try { - ImageProducer ip = Jimi.getImageProducer(this.m_href, Jimi.SYNCHRONOUS | Jimi.IN_MEMORY); + ImageProducer ip = Jimi.getImageProducer(this.m_href.openStream(), Jimi.SYNCHRONOUS | Jimi.IN_MEMORY); FopImageConsumer consumer = new FopImageConsumer(this); ip.startProduction(consumer); -- 2.39.5