write

fun write(data: ByteArray)

Writes data to Store file.

Parameters

data

data to write (the recommended size of data chunk is StoreFileStream.OPTIMAL_SEND_SIZE)

Throws

if there is an error while writing chunk

if there is an unknown error while writing chunk

when storeApi is not initialized or there's no connection

IOException

when this is closed