ZipOutputStream & directories
Alan Bateman
Alan.Bateman at oracle.com
Tue Mar 7 08:31:11 UTC 2023
On 06/03/2023 20:20, Eirik Bjørsnøs wrote:
> :
>
> I was not thinking of changing anything if the caller actually
> specified a method. This would be just for the default/unspecified
> case, in which case ZipEntry.method is -1.
>
It would require re-specifying ZOS.setMethod to set the default
compression method for non-directory entries and re-specifying
ZOS.putNextEntry to use the STORED method as the default for directory
entries. Even so, this wouldn't ensure that directory entries have 0
size. Given that ZOS dates from JDK 1.1 then I think we have to cautious
about changing.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230307/59850920/attachment-0001.htm>
More information about the core-libs-dev
mailing list