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

possible typo in description of getTileWidth() method

    XMLWordPrintable

    Details

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

      Description



      Name: vrR10176 Date: 04/11/2001



      Api spec (jdk1.4.0beta-b59) says about method
      javax.imageio.ImageWriteParam.getTileWidth():

      "public int getTileWidth()
        Returns the width of each tile in an image as it will be written
      to the output stream. If tiling parameters have not been set, an
      IllegalStateException is thrown.
        Returns: the tile width to be used for encoding.
        Throws:
      ...
          IllegalStateException - if the compression mode is not MODE_EXPLICIT.
      ..."

      Used in description word 'compression' (instead of 'tiling') looks
      like a typo. And what is more the method throws IllegalStateException
      if the tiling mode is not MODE_EXPLICIT and does not check compression
      mode.

      The descriptions of following methods
      javax.imageio.ImageWriteParam.getTileHeight(),
      javax.imageio.ImageWriteParam.getTileGridXOffset(),
      javax.imageio.ImageWriteParam.getTileGridYOffset(),
      contain the same issue.

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: