Thank you Darryl for your reply. I am curious though about the api. I believe
Java is one of the best documented languages out there. Even Microsoft has third party programs to purchase just to read the .NET framework classes provided which I believe to be ridicioulous. Although my source for java api is just oracles website is there another location, because although I believe it is well documented I don't believe it is documented so well that they say java will not move forward with ImageIO and will with Toolkit. Here's a snippet of both ImageIO.read from oracles website perhaps I'm missing your reference to the api where it says this.
read
public static BufferedImage read(File input)
throws IOException
Returns a BufferedImage as the result of decoding a supplied File with an ImageReader chosen automatically from among those currently registered. The File is wrapped in an ImageInputStream. If no registered ImageReader claims to be able to read the resulting stream, null is returned.
The current cache settings from getUseCacheand getCacheDirectory will be used to control caching in the ImageInputStream that is created.
Note that there is no read method that takes a filename as a
String; use this method instead after creating a File from the filename.
This methods does not attempt to locate ImageReaders that can read directly from a File; that may be accomplished using IIORegistry and ImageReaderSpi.
Parameters:
input - a File to read from.
Returns:
a BufferedImage containing the decoded contents of the input, or null.
Throws:
IllegalArgumentException - if input is null.
IOException - if an error occurs during reading.
read
public static BufferedImage read(InputStream input)
throws IOException
Returns a BufferedImage as the result of decoding a supplied InputStream with an ImageReader chosen automatically from among those currently registered. The InputStream is wrapped in an ImageInputStream. If no registered ImageReader claims to be able to read the resulting stream, null is returned.
The current cache settings from getUseCacheand getCacheDirectory will be used to control caching in the ImageInputStream that is created.
This methods does not attempt to locate ImageReaders that can read directly from an InputStream; that may be accomplished using IIORegistry and ImageReaderSpi.
Parameters:
input - an InputStream to read from.
Returns:
a BufferedImage containing the decoded contents of the input, or null.
Throws:
IllegalArgumentException - if input is null.
IOException - if an error occurs during reading.
But I do believe you answered my question and will test it tomorrow. I am greatly appreciative of your help because I have posted this question in many different forums and places and was beginning to lose hope on getting an answer. My alternative move next was to multi-thread the image loading somehow.
Thanks