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

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • client-libs
    • b13
    • generic
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: