-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 5.0, 6u23, 6u38, 7, 8, 9
-
b137
-
generic
-
generic
I am reading a PNG image from a file using PNG image reader. I have added an IIOReadProgressListener to the PNGReader. Inside the imageStarted() method of the listener, i am trying to abort the read process by calling reader.abort(). This does not have any effect on the read process and PNG Reader continues to read the image till completion.
This is reproducible on Solaris as well as Win32, since JDk1.4. This functionality works fine for all other readers.
I have attached a sample testcase. Execute the testcase as follows:
java ReadAbortTest <img file>
When you pass a PNG image, the image will be read fully and will be displayed to the user. For all other image types, the read process will be aborted immediately.
This is reproducible on Solaris as well as Win32, since JDk1.4. This functionality works fine for all other readers.
I have attached a sample testcase. Execute the testcase as follows:
java ReadAbortTest <img file>
When you pass a PNG image, the image will be read fully and will be displayed to the user. For all other image types, the read process will be aborted immediately.
- relates to
-
JDK-8164930 ImageIO.getImageReaders(ImageInputStream) contains no ImageReader for WBMP
-
- Open
-
-
JDK-8164931 Verify if writer.abort() works properly for all writers in IIOWriteProgressListener.
-
- Resolved
-