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

DataInputStream and DataOutputStream needs better name for method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • None
    • generic
    • generic

      The Data{Input, Output}Stream classes have these methods:
      writeUTF
      readUTF

      These would be more appropriately named:
      writeString
      readString

      These methods are cause confusion because some people are not sure if the UTF encoding is UTF-8 or something else. In fact, it is something else...a "modified" UTF-8. However, the fact that it is any UTF is irrelevant...it is really a String object.

            mr Mark Reinhold
            joconnersunw John Oconner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: