How do I append files to a .tar archive in Java?

前端 未结 2 881
野的像风
野的像风 2021-01-23 10:11

I would like to create a tar archive in Java. I have files which are constantly being created and I\'d like a worker thread to take a reference to those files from a queue and c

2条回答
  •  情深已故
    2021-01-23 10:49

    You run here in a limitation of tar: http://en.wikipedia.org/wiki/Tar_(file_format)#Random_access

    because of that it is hard to add or remove single files without copying the whole archive.

提交回复
热议问题