import org.apache.xmlgraphics.util.io.ASCIIHexOutputStream;
import org.apache.fop.util.bitmap.BitmapImageUtil;
-import org.apache.fop.util.bitmap.JAIMonochromeBitmapConverter;
import org.apache.fop.util.bitmap.MonochromeBitmapConverter;
/**
private boolean isJAIAvailable() {
MonochromeBitmapConverter converter
= BitmapImageUtil.createDefaultMonochromeBitmapConverter();
- return (converter instanceof JAIMonochromeBitmapConverter);
+ return converter.getClass().getName().contains("JAI");
}
private void saveAsPNG(RenderedImage img, String name) throws IOException {