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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P5
    • None
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: