public class ImageUtilsAwt extends ImageUtils {
@Override
protected boolean check() {
- // If we can get the class, it means we have access to it
- @SuppressWarnings("unused")
- Object test = ImageIO.class;
+ // Will not work if ImageIO is not available
+ ImageIO.getCacheDirectory();
return true;
}