<AWT Dev> RFR: 8262161 Refactor manual I/O stream copying to new convinient methods in java.desktop

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Tue Feb 23 15:23:54 UTC 2021

Cleanup code to use new handy methods in `java.io.InputStream`/`java.nio.file.Files` instead of manual stream copy:
1. java.io.InputStream#readAllBytes
2. java.io.InputStream#transferTo
3. java.nio.file.Files#copy

Similar issue - https://bugs.openjdk.java.net/browse/JDK-8080272


Commit messages:
 - [PATCH] Refactor manual I/O stream copying to new convenient methods in java.desktop
 - [PATCH] Refactor I/O stream copying to use java.io.InputStream.transferTo in java.desktop

Changes: https://git.openjdk.java.net/jdk/pull/1856/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1856&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8262161
  Stats: 134 lines in 11 files changed: 3 ins; 102 del; 29 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1856.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1856/head:pull/1856

PR: https://git.openjdk.java.net/jdk/pull/1856

More information about the awt-dev mailing list