* @param documentURL the URL of the document to rasterize
*/
public SVGRasterizer(String documentURL) {
UserAgent userAgent = new UserAgentAdapter();
SVGDocumentLoader loader = new SVGDocumentLoader(documentURL,
new DocumentLoader(userAgent));
loader.addSVGDocumentLoaderListener(new SVGRasterizerListener());
/* Note that Batik uses the context class loader for loading SAX Parser, etc.
* Context class loader is inappropriate under the Felix implementation of OSGi,
* so replace it with the regular class loader. */
loader.setContextClassLoader(loader.getClass().getClassLoader());
loader.start();
}