href = href.substring(1, href.length() - 1);
}
}
+
+ // check if already created
+ FopImage imageObject = (FopImage)m_urlMap.get(href);
+ if (imageObject != null)
+ return imageObject;
+
try {
// try url as complete first, this can cause
// a problem with relative uri's if there is an
}
}
- // check if already created
- FopImage imageObject = (FopImage)m_urlMap.get(absoluteURL.toString());
- if (imageObject != null)
- return imageObject;
-
// If not, check image type
ImageReader imgReader = null;
try {
+ "class " + imageClass.getName()
+ " doesn't implement org.apache.fop.image.FopImage interface");
}
- m_urlMap.put(absoluteURL.toString(), imageInstance);
+ m_urlMap.put(href, imageInstance);
return (FopImage)imageInstance;
}