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

Doc: ImageInputStream read method docs should not claim "one or more" bytes read

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta2
    • generic
    • solaris_7

        The ImageInputStream.read(byte[] b), read(byte[] b, int off, int len),
      and readBytes(IIOByteBuffer buf, int len) methods state that "one or more"
      bytes will be read. The is not true since 'len' is allowed to be 0.
      They should state that "up to len" bytes will be read. This behavior is
      consistent with that of the conventional InputStream class.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: