Reader

interface Reader : Closeable

Provides an interface for reading data from the stream

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun isClosed(): Boolean

Check if reader closed or not.

Link copied to clipboard
abstract fun position(): Long

Get position which start reading at stream

Link copied to clipboard
abstract fun read(    byteBuffer: ByteBuffer,     offsetInBytes: Int,     sizeInBytes: Int): Int
abstract fun read(    bytes: ByteArray,     offsetInBytes: Int,     sizeInBytes: Int): Int