如何在Android中解压缩tar文件? [英] How does one unpack a tar file in Android?
问题描述
我对tar不太熟悉,所以这可能是一个愚蠢的问题,但是我遇到一种情况,我想从服务器上抓一个tarball(最好是压缩的,但这不是必需的),将其下载到该设备并将其解压缩.
I'm not overly familiar with tar, so, this may be a stupid question, but I have a situation where I want to grab a tarball from the server (preferably compressed, but that's not essential), download it on to the device and untar it.
我没有看到任何标准库来执行此操作...我是否忽略了它,或者它不存在?
I'm not seeing any standard library to do this... am I overlooking it, or does it not exist?
我正在尝试通过一些API或库来处理解包Tars的应用程序在我的应用程序中执行此操作-我不是在寻找一款能够解压设备上的Tars信息的应用程序.
I'm attempting to do this in my app by means of some API or library that handles unpacking tars - I'm not looking for an app that un-tars stuff on my device.
推荐答案
我不知道操作系统中是否支持它.但是,您应该可以使用第三方库来做到这一点.
I don't know if there is support for it built into the OS. But you should be able to use a third party library to do it.
这是一个,我敢肯定还有其他选择
Here is one, I am sure there are others to choose from out there as well.
这篇关于如何在Android中解压缩tar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!