Why is Sun's JDK does not provide update of ZIP file content?

zhaozj2021-02-16  58

Today uses the JDK's API to handle the compressed files in the zip format. It is found that the API is quite flexible for the read processing of the compressed file, and each file in the compressed package can be handled separately; for the write operation, it is only possible to process the compression package as a file. I haven't found a way to update a file inside the compressed package for a long time, disappointment. I don't know how everyone is dealt, I have to completely unlock the original compression package, and then press it back after updating the file. The way is too stupid, and the file inside the package will be very slow.

转载请注明原文地址:https://www.9cbs.com/read-18678.html

New Post(0)