zipFiles

fun zipFiles(srcFiles: Collection<String>, zipFilePath: String): Boolean

Zip the files.

Return

true: success

false: fail

Parameters

srcFiles

The source of files.

zipFilePath

The path of ZIP file.

Throws

if an I/O error has occurred


fun zipFiles(srcFilePaths: Collection<String>?, zipFilePath: String?, comment: String?): Boolean

Zip the files.

Return

true: success

false: fail

Parameters

srcFilePaths

The paths of source files.

zipFilePath

The path of ZIP file.

comment

The comment.

Throws

if an I/O error has occurred


fun zipFiles(srcFiles: Collection<File>, zipFile: File): Boolean

Zip the files.

Return

true: success

false: fail

Parameters

srcFiles

The source of files.

zipFile

The ZIP file.

Throws

if an I/O error has occurred


fun zipFiles(srcFiles: Collection<File>?, zipFile: File?, comment: String?): Boolean

Zip the files.

Return

true: success

false: fail

Parameters

srcFiles

The source of files.

zipFile

The ZIP file.

comment

The comment.

Throws

if an I/O error has occurred