StoreFileStream

abstract class StoreFileStream(val handle: Long, val storeApi: StoreApi)

Base class for Store file streams. Implements progress listeners.

Inheritors

Constructors

Link copied to clipboard
protected constructor(handle: Long, storeApi: StoreApi)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Manages sending/reading files using kotlinx.io.Source/kotlinx.io.Sink.

Link copied to clipboard

Interface to listen to progress of sending/reading files.

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

Sets listening for single chunk sent/read.