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

(bf) Add put/getBoolean and put/getUTF methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 7
    • core-libs
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      Missing:
      getUTF()
      putUTF()
      getBoolean()
      putBoolean()


      JUSTIFICATION :
      - for now, binary files, written by java.io.DataOutput#writeUTF() can't be read via FileChannel.
      - internal implementations of abstract class ByteBuffer couldn't be extended accordingly by developer.
      - Developer should stay at slow java.io.XputStream classes, (in worst case using BufferedInputStream, if random access is required).
      - Additionally I see no reason, why boolean accessors can't be added for convenience.
      - Using charset driven InputStreamReader would be much slower, and incompatible to data, written by DataOutput#writeUTF, as there is no decoder for *modified* UTF-8.

            alanb Alan Bateman
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: