zipFile

open fun zipFile(srcFilePath: String, zipFilePath: String): Boolean

Zip the file.

Return

{@code true}: success{@code false}: fail

Parameters

srcFilePath

The path of source file.

zipFilePath

The path of ZIP file.

Throws

if an I/O error has occurred

open fun zipFile(srcFilePath: String, zipFilePath: String, comment: String): Boolean

Zip the file.

Return

{@code true}: success{@code 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

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

Zip the file.

Return

{@code true}: success{@code false}: fail

Parameters

srcFile

The source of file.

zipFile

The ZIP file.

Throws

if an I/O error has occurred

open fun zipFile(srcFile: File, zipFile: File, comment: String): Boolean

Zip the file.

Return

{@code true}: success{@code false}: fail

Parameters

srcFile

The source of file.

zipFile

The ZIP file.

comment

The comment.

Throws

if an I/O error has occurred