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

javax.imageio.stream: some misprints in the spec

XMLWordPrintable

    • beta2
    • generic
    • generic



      Name: mlR10151 Date: 04/26/2001



      There are some misprints in the spec:

      1. IIOByteBuffer.setOffset(int offset):

      Updates the value that will be returned by subsequent calls to the getOffsetLength method.
                                                                         ^^^^^^^^^^^^^^^
      2. FileImageInputStream.seek(long pos):

      IndexOutOfBoundsException - if pos is smaller the the flushed position.
                                                    ^^^^^^^

      3. ImageInputStream.-, FileCacheImageInputStream.-, FileCacheImageOutputStream.-,
      FileImageInputStream.-, FileImageOutputStream.-, ImageInputStreamImpl.-, MemoryCacheImageInputStream.-,
      MemoryCacheImageOutputStream.read(byte[] b, int off, int len):

      Reads one or more bytes from the stream, up to len, and stores them into b starting at index off.
            ^^^^^^^^^^^ (may read 0 bytes)


      4. FileCacheImageInputStream.-, FileImageInputStream.-, ImageInputStreamImpl.-,
      MemoryCacheImageInputStream.read(byte[] b, int off, int len):

      The number of bytes read is returned.
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^(see 4447282)

      5. FileCacheImageOutputStream.isCachedFile()
      Returns true since this ImageInputStream maintains a file cache.
                                   ^^(Out)

      6. ImageOutputStreamImpl.writeBits(long bits, int numBits):
      1 down to the least signficant bit.
                             ^^


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: