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

DataInputStream.readFully doesn't provide num-of-chars on EOF

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • sparc
    • solaris_7

      In class DataInputStream, the method ReadFully can hit eof and return without reading all the chars requested, BUT you can't find out how many chars it DID
      read.

      Perhaps we should add a

         int InputStream.readBlocking( byte[] ba, int offset, int length);


            smarks Stuart Marks
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: