I have a ".tar" file that my app downloads and I can't figure out how to extract it. I've tried reading it with ZipInputStream, but getNextEntry() returns null even though I can confirm through terminal that the tar file exists. I've been able to untar it manually so I know it's not an issue with the file.

Does anyone have any ideas? Thanks for the help!

有帮助吗?

解决方案

As suggested above, JTAR ended up working for me: https://github.com/kamranzafar/jtar

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top