PeterAlfredLee commented on pull request #248:
URL: https://github.com/apache/commons-compress/pull/248#issuecomment-1038568796


   For the `@NotThreadSafe` annotation :
   
   For SevenZ archives, many entries may be compressed in a single 'folder'(see 
also [7z format specification](https://7zip.bugaco.com/7zip/7zFormat.txt)). 
This means we can not read the Nth entry before the (N-1)th entry is read, and 
that's why we can not achieve a easy enough random access as Zip format did. In 
this case, we need to read the inputstream carefully: no much or no less bytes 
should be read, and we can only access the entries in the given order.
   
   I have no idea how we can implement a multi-threading SevenZFile, so I'm not 
surprised about the `@NotThreadSafe` annotation.


-- 
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: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to