Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4444201

Spec: ImageReader - incomplete description of some query methods

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description



      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.

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            dricesunw Daniel Rice (Inactive)
            Reporter:
            kuzsunw Kuz Kuz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: