read

fun read(size: Long): ByteArray

Reads file data and moves the cursor. If read data size is less than length, then EOF.

Return

Read data

Parameters

size

size of data to read (the recommended size is InboxFileStream.OPTIMAL_SEND_SIZE)

Throws

IOException

when this is closed

when method encounters an exception

when method encounters an unknown exception

when .inboxApi is closed