writeFileFromBytesByChannel

open fun writeFileFromBytesByChannel(filePath: String, bytes: Array<Byte>, isForce: Boolean): Boolean

Write file from bytes by channel.

Return

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

Parameters

filePath

The path of file.

bytes

The bytes.

isForce

是否写入文件

open fun writeFileFromBytesByChannel(filePath: String, bytes: Array<Byte>, append: Boolean, isForce: Boolean): Boolean

Write file from bytes by channel.

Return

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

Parameters

filePath

The path of file.

bytes

The bytes.

append

True to append, false otherwise.

isForce

True to force write file, false otherwise.

open fun writeFileFromBytesByChannel(file: File, bytes: Array<Byte>, isForce: Boolean): Boolean

Write file from bytes by channel.

Return

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

Parameters

file

The file.

bytes

The bytes.

isForce

True to force write file, false otherwise.

open fun writeFileFromBytesByChannel(file: File, bytes: Array<Byte>, append: Boolean, isForce: Boolean): Boolean

Write file from bytes by channel.

Return

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

Parameters

file

The file.

bytes

The bytes.

append

True to append, false otherwise.

isForce

True to force write file, false otherwise.