StoreFileStreamReader

Manages handle for file reading.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
protected val handle: Long

Reference to file handle.

Link copied to clipboard
Link copied to clipboard
protected val storeApi: StoreApi

Reference to StoreApi.

Functions

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

Increases the size of current sent/read data by chunkSize and calls 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.