From: eschaeffer Date: Wed, 24 May 2000 08:02:40 +0000 (+0000) Subject: throw an explicit exception message when the image file is unavailable X-Git-Tag: pre-columns~494 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61db9112e1cd4373071f937ab8226a8a0cbcdfc4;p=xmlgraphics-fop.git 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 --- 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);