writeFileFromBytesByStream

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

Write file from bytes by stream.

Return

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

Parameters

filePath

The path of file.

bytes

The bytes.

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

Write file from bytes by stream.

Return

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

Parameters

filePath

The path of file.

bytes

The bytes.

append

True to append, false otherwise.

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

Write file from bytes by stream.

Return

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

Parameters

file

The file.

bytes

The bytes.

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

Write file from bytes by stream.

Return

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

Parameters

file

The file.

bytes

The bytes.

append

True to append, false otherwise.