ImageIO Plug-in Help
I have created both a ImageIO reader and writer plug-in. Both have been deployed are work as they should for those type of images that it reads. My problem lies in when I need to read other types of random images.
Iterator imageReaders = ImageIO.getImageReaders(iis);
ImageReader ir = imageReaders.next();
This will always return two readers, my custom plug-in and then the built in ImageIO reader for that type. So say the image I am trying to read is a png, it will return "my custom reader" and "png". It always uses my custom one first.
How does ImageIO decide which reader to use based on the ImageInputStream it gets?
Is this something that I need to code in my plug-in so it limits it to the specific type I need?
Any help would be great, thanks.