summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoreschaeffer <eschaeffer@unknown>2000-05-24 10:46:28 +0000
committereschaeffer <eschaeffer@unknown>2000-05-24 10:46:28 +0000
commit9b39b148a57a1d4bf9442ab14db265941a4dc790 (patch)
tree92d97eba050a23b23620ad1ff0a21fcdccf4c54e /src
parent5ed0b64eacc6956637e2f08f8fb17e1260e175e6 (diff)
downloadxmlgraphics-fop-9b39b148a57a1d4bf9442ab14db265941a4dc790.tar.gz
xmlgraphics-fop-9b39b148a57a1d4bf9442ab14db265941a4dc790.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/image/FopImageFactory.java6
1 files 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());