InboxFileStreamReader

Manages handle for file reading from Inbox.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Reference to file handle.

Link copied to clipboard
Link copied to clipboard

Returns information whether the instance is closed.

Link copied to clipboard

Gets size of sent data.

Functions

Link copied to clipboard
protected fun callChunkProcessed(chunkSize: Long)

Increases the size of current sent/read data by chunkSize and calls StoreFileStream.ProgressListener.onChunkProcessed.

Link copied to clipboard
fun close(): String

Closes file handle.

Link copied to clipboard
fun read(size: Long): ByteArray

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

Link copied to clipboard
fun seek(position: Long)

Moves read cursor.

Link copied to clipboard

Sets listening for single chunk sent/read.