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

java.awt.datatransfer/sun.awt.datatransfer should use and support java.nio APIs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • generic
    • generic

      DataTransferer is currently relying on private sun.io APIs. Once JSR 51 is
      putback, it should be rewritten to use the new public APIs instead. This will
      improve data transfer performance significantly, and will also ensure that we
      don't attempt unsupported character conversions in some locales.

      The following dependencies should be removed:
        * Use of sun.io.CharacterEncoding.charsetIterator in
          DataTransferer.supportedEncodingsIterator.
        * Use of sun.io.CharacterEncoding.aliasName throughout the class.
        * Use of sun.io.CharToByteConverter in DataTransferer.ReencodingInputStream.

      In addition, CharacterEncoding.charsetIterator itself can be removed.
      DataTransferer is the only client of the function.

      =====
      In addition, the new java.nio classes CharBuffer and ByteBuffer should be fully
      supported by the data transfer subsystem. They should be of the same order as
      Reader and InputStream. This will require a series of API changes.

            dmendenhsunw David Mendenhall (Inactive)
            dmendenhsunw David Mendenhall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: