程序包 com.mbap.ct.util
类 DownloadUtil
java.lang.Object
com.mbap.ct.util.DownloadUtil
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
DownloadUtil
public DownloadUtil()
-
-
方法详细资料
-
zipFile
public static void zipFile(File fileToZip, String fileName, ZipOutputStream zipOut) throws IOException 压缩文件- 参数:
fileToZip- 待压缩的目录fileName- 文件名zipOut- 输出位置- 抛出:
IOException
-
download
-
delete
递归删除目录下的所有文件及子目录下所有文件- 参数:
dir- 将要删除的文件目录- 返回:
- boolean Returns "true" if all deletions were successful. If a deletion fails, the method stops attempting to delete and returns "false".
-