createZipFile

fun createZipFile(srcFilePath: String, zipFilePath: String): Boolean

Zip the file.

Return

true: success

false: fail

Parameters

srcFilePath

The path of source file.

zipFilePath

The path of ZIP file.

Throws

if an I/O error has occurred


fun createZipFile(srcFilePath: String, zipFilePath: String, comment: String): Boolean

Zip the file.

Return

true: success

false: fail

Parameters

srcFilePath

The path of source file.

zipFilePath

The path of ZIP file.

comment

The comment.

Throws

if an I/O error has occurred


fun createZipFile(srcFile: File, zipFile: File): Boolean

Zip the file.

Return

true: success

false: fail

Parameters

srcFile

The source of file.

zipFile

The ZIP file.

Throws

if an I/O error has occurred


fun createZipFile(srcFile: File?, zipFile: File?, comment: String?): Boolean

Zip the file.

Return

true: success

false: fail

Parameters

srcFile

The source of file.

zipFile

The ZIP file.

comment

The comment.

Throws

if an I/O error has occurred