Resend RFR 8231766: Files.copy/move do not honor requested compression method when copying/moving within the same zip file
Alan Bateman
Alan.Bateman at oracle.com
Tue Oct 22 18:31:45 UTC 2019
On 22/10/2019 18:09, Lance Andersen wrote:
> Hi all,
>
> This is a request to review the proposed fix for 8231766 which allows
> for Files.copy/move to correctly use the specified compression method
> when copying/moving a file within the same Zip file.
>
> The webrev can be found at:
> http://cr.openjdk.java.net/~lancea/8231766/webrev.00/
>
You should be able to avoid the copy loop by changing it to
is.transfer(os). It might able be a bit more readable if you rename
these two to "in" and "out" but that may be just me.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191022/f7f9fcdd/attachment.html>
More information about the nio-dev
mailing list