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

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • client-libs
    • b13
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved: