diff options
author | eschaeffer <eschaeffer@unknown> | 2000-05-24 08:02:40 +0000 |
---|---|---|
committer | eschaeffer <eschaeffer@unknown> | 2000-05-24 08:02:40 +0000 |
commit | 61db9112e1cd4373071f937ab8226a8a0cbcdfc4 (patch) | |
tree | c00eab4b6e3f643477449f5edb698ad47de35bd6 /src/org/apache/fop/image/JimiImage.java | |
parent | 9d4d10cd1df7edb249173cadf82655d019cb229b (diff) | |
download | xmlgraphics-fop-61db9112e1cd4373071f937ab8226a8a0cbcdfc4.tar.gz xmlgraphics-fop-61db9112e1cd4373071f937ab8226a8a0cbcdfc4.zip |
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
Diffstat (limited to 'src/org/apache/fop/image/JimiImage.java')
-rw-r--r-- | src/org/apache/fop/image/JimiImage.java | 4 |
1 files 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); |