KtorByteReadChannelByteReader

class KtorByteReadChannelByteReader(channel: ByteReadChannel, val contentLength: Long, bufferSize: Long = DEFAULT_BUFFER_SIZE) : ByteReader

This class allows streaming data from a cloud service and read only the headers.

Constructors

Link copied to clipboard
constructor(channel: ByteReadChannel, contentLength: Long, bufferSize: Long = DEFAULT_BUFFER_SIZE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val contentLength: Long

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun readByte(): Byte?

Returns the next Byte, if any.

Link copied to clipboard
open override fun readBytes(count: Int): ByteArray