add checks on ImageUtils instances
[nikiroo-utils.git] / src / be / nikiroo / utils / ui / ImageUtilsAwt.java
index 6e9160f5c02f38964e343035d4cda7a7c7f34cff..367e757a81ede843a9273f68cafbe6f816374297 100644 (file)
@@ -18,6 +18,14 @@ import be.nikiroo.utils.ImageUtils;
  * @author niki
  */
 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;
+               return true;
+       }
+
        @Override
        public void saveAsImage(Image img, File target, String format)
                        throws IOException {