yujincheng08 commented on PR #571:
URL: https://github.com/apache/commons-compress/pull/571#issuecomment-2342426121

   Hi, @garydgregory,
   
   Test added.
   
   And this feature is already documented:
   
   
https://github.com/apache/commons-compress/blob/287e94beb6a81ddf111403b4c56ab80f957308b5/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java#L483-L496
   
   According to the document, the `rawStream` may be compressed/encrypted, and 
if crc, size and compressed size are supplied on the entry, these values will 
be used as-is. So there's no reason to check if the compression method or 
encryption method is supported or not when crc, size and compressed size are 
supplied (we don't need to calculate these values and we don't need to compress 
or encrypt the data).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to