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

java.io.DataInputStream: Add readBytes, readChars for completeness

XMLWordPrintable

    • sparc
    • solaris_2.4

      writeChars() has no readChars() counterpart. writeBytes() has no
      readBytes() counterpart -- the best is readFully() which reads an
      array, although writeChars() writes out a String. The length of the
      String is not saved.

      In general, DataInputStream and DataOutputStream should be virtual
      counterparts of each other, with each write call having a read
      equivalent. This would reduce confusion, and ensure that functionality
      matched.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: