-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta2
-
generic
-
generic
Name: bkR10012 Date: 04/13/2001
Spec. (jdk1.4.0beta-b59) of the class javax.imageio.ImageReader
says that the input source must be set before any of the query
or read methods are used.
But spec. doesn't describe behavior of some query methods with
imageIndex parameter in the following cases:
- if the input source has not been set
- if the supplied index is out of bounds.
The list of such methods is:
public boolean isRandomAccessEasy(int imageIndex)throws IOException
public float getAspectRatio(int imageIndex) throws IOException
public boolean isImageTiled(int imageIndex) throws IOException
public int getTileHeight(int imageIndex) throws IOException
public int getTileWidth(int imageIndex) throws IOException
public int getTileGridXOffset(int imageIndex) throws IOException
public int getTileGridYOffset(int imageIndex) throws IOException
Note that the default implementation of some listed methods
simply returns false or 0.
However spec. should describe method behavior in detail regardless
to any implementation.
======================================================================