Added methods for getting normalized list of formats supported by ImageIO + minor clean-up.

This commit is contained in:
Harald Kuhr
2011-11-28 15:07:43 +01:00
parent f130e654ef
commit d1e72d1ece
3 changed files with 47 additions and 6 deletions

View File

@@ -463,7 +463,7 @@ public final class ICNSImageReader extends ImageReaderBase {
// Return blank icon + issue warning. We know the image dimensions, we just can't read the data.
processWarningOccurred(String.format(
"Cannot read %s format in type '%s' icon (no reader; installed: %s)",
format, ICNSUtil.intToStr(resource.type), Arrays.toString(ImageIO.getReaderFormatNames())
format, ICNSUtil.intToStr(resource.type), Arrays.toString(IIOUtil.getNormalizedReaderFormatNames())
));
Dimension size = resource.size();