]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
change factory to use GifJpegImage class (not configuration file for now)
authoreschaeffer <eschaeffer@unknown>
Wed, 24 May 2000 10:46:28 +0000 (10:46 +0000)
committereschaeffer <eschaeffer@unknown>
Wed, 24 May 2000 10:46:28 +0000 (10:46 +0000)
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

index 592ec2d90485badcda00df9522fe44f4262ca4d9..cb6a2077fed30a759bddaf86e591afcc67740c92 100644 (file)
@@ -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());