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

Spec: ImageReader - contradiction in getImageTypes description

XMLWordPrintable

    • beta2
    • generic
    • generic



      Name: bkR10012 Date: 04/13/2001


      Spec. of the class javax.imageio.ImageReader says:

      "public abstract Iterator getImageTypes(int imageIndex)
                                      throws IOException

           Returns an Iterator containing possible image types to which the given
           image may be decoded, in the form of ImageTypeSpecifiers.
           At least one legal image type will be returned.
      .....
           Returns:
               an Iterator containing ImageTypeSpecifiers representing suggested
               image types for decoding the current given image, or null."
               
      Returning null contradicts to "At least one legal image type will be
      returned".
          
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: