ZipUtils

class ZipUtils

Functions

getComments
Link copied to clipboard
open fun getComments(zipFile: File): List<String>
Return the files' comment in ZIP file.
open fun getComments(zipFilePath: String): List<String>
Return the files' comment in ZIP file.
getFilesPath
Link copied to clipboard
open fun getFilesPath(zipFile: File): List<String>
Return the files' path in ZIP file.
open fun getFilesPath(zipFilePath: String): List<String>
Return the files' path in ZIP file.
unzipFile
Link copied to clipboard
open fun unzipFile(zipFile: File, destDir: File): List<File>
Unzip the file.
open fun unzipFile(zipFilePath: String, destDirPath: String): List<File>
Unzip the file.
unzipFileByKeyword
Link copied to clipboard
open fun unzipFileByKeyword(zipFile: File, destDir: File, keyword: String): List<File>
Unzip the file by keyword.
open fun unzipFileByKeyword(zipFilePath: String, destDirPath: String, keyword: String): List<File>
Unzip the file by keyword.
zipFile
Link copied to clipboard
open fun zipFile(srcFile: File, zipFile: File): Boolean
Zip the file.
open fun zipFile(srcFilePath: String, zipFilePath: String): Boolean
Zip the file.
open fun zipFile(srcFile: File, zipFile: File, comment: String): Boolean
Zip the file.
open fun zipFile(srcFilePath: String, zipFilePath: String, comment: String): Boolean
Zip the file.
zipFiles
Link copied to clipboard
open fun zipFiles(srcFiles: Collection<File>, zipFile: File): Boolean
Zip the files.
open fun zipFiles(srcFiles: Collection<String>, zipFilePath: String): Boolean
Zip the files.
open fun zipFiles(srcFiles: Collection<File>, zipFile: File, comment: String): Boolean
Zip the files.
open fun zipFiles(srcFilePaths: Collection<String>, zipFilePath: String, comment: String): Boolean
Zip the files.