From 9b39b148a57a1d4bf9442ab14db265941a4dc790 Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Wed, 24 May 2000 10:46:28 +0000 Subject: [PATCH] change factory to use GifJpegImage class (not configuration file for now) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193386 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/FopImageFactory.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java index 592ec2d90..cb6a2077f 100644 --- a/src/org/apache/fop/image/FopImageFactory.java +++ b/src/org/apache/fop/image/FopImageFactory.java @@ -169,7 +169,8 @@ public class FopImageFactory { Object imageInstance = null; Class imageClass = null; try { - imageClass = Class.forName("org.apache.fop.image.JimiImage"); //ClassNotFoundException +// imageClass = Class.forName("org.apache.fop.image.JimiImage"); //ClassNotFoundException + imageClass = Class.forName("org.apache.fop.image.GifJpegImage"); //ClassNotFoundException Class[] imageConstructorParameters = new Class[1]; imageConstructorParameters[0] = Class.forName("java.net.URL"); Constructor imageConstructor = imageClass.getDeclaredConstructor(imageConstructorParameters); //NoSuchMethodException, SecurityException @@ -177,7 +178,8 @@ public class FopImageFactory { initArgs[0] = absoluteURL; imageInstance = imageConstructor.newInstance(initArgs); // InstanciationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException } catch (ClassNotFoundException classex) { - throw new FopImageException("class " + "org.apache.fop.image.JimiImage" + " not found"); +// throw new FopImageException("class " + "org.apache.fop.image.JimiImage" + " not found"); + throw new FopImageException("class " + "org.apache.fop.image.GifJpegImage" + " not found"); /* } catch (FopImageException fopex) { throw new FopImageException(fopex.getMessage()); -- 2.39.5