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

Refactor manual I/O stream copying in java.desktop to use new convenience APIs

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: client-libs
    • Labels:
    • Resolved In Build:
      b13
    • CPU:
      generic
    • OS:
      generic

      Description

      This is a request to cleanup the code in the "java.desktop" module and uses the new handy methods added to the "java.io.InputStream/java.nio.file.Files" instead of manual stream copy:

      The new methods are:
          java.io.InputStream#readAllBytes
          java.io.InputStream#transferTo
          java.nio.file.Files#copy

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: