]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
throw an explicit exception message when the image file is unavailable
authoreschaeffer <eschaeffer@unknown>
Wed, 24 May 2000 08:02:40 +0000 (08:02 +0000)
committereschaeffer <eschaeffer@unknown>
Wed, 24 May 2000 08:02:40 +0000 (08:02 +0000)
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

index b2132386c8f899d1d6c48e2e69669da26ade7ecd..681e7549a74a674f1adc74c915e0864c953dc975 100644 (file)
@@ -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);