Package-level declarations

Types

Link copied to clipboard
abstract class StoreFileStream(val handle: Long, val storeApi: StoreApi)

Base class for Store file streams. Implements progress listeners.

Link copied to clipboard

Manages handle for file reading.

Link copied to clipboard

Manages handle for file writing.

Functions

Link copied to clipboard
fun StoreFileStreamWriter.Companion.createFile(api: StoreApi, storeId: String, publicMeta: ByteArray, privateMeta: ByteArray, size: Long, inputStream: InputStream, streamController: StoreFileStream.Controller? = null): String

Creates new file in given Store and writes data from given InputStream.

Link copied to clipboard

Opens Store file and writes it into OutputStream.

Link copied to clipboard
fun StoreFileStreamWriter.Companion.updateFile(api: StoreApi, fileId: String, publicMeta: ByteArray, privateMeta: ByteArray, size: Long, inputStream: InputStream, streamController: StoreFileStream.Controller? = null): String

Updates existing file and writes data from passed InputStream.