writeFileFromBytesByMap

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

Write file from bytes by map.

Return

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

Parameters

filePath

The path of file.

bytes

The bytes.

isForce

True to force write file, false otherwise.

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

Write file from bytes by map.

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 writeFileFromBytesByMap(file: File, bytes: Array<Byte>, isForce: Boolean): Boolean

Write file from bytes by map.

Return

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

Parameters

file

The file.

bytes

The bytes.

isForce

True to force write file, false otherwise.

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

Write file from bytes by map.

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.