ReadableByteChannel

A ReadableByteChannel is a type of Channel that can read bytes.

Read operations are synchronous on a ReadableByteChannel, that is, if a read is already in progress on the channel then subsequent reads will block until the first read completes. It is undefined whether non-read operations will block.

Inheritors

Functions

Link copied to clipboard
abstract fun close()

abstract fun close()
Closes an open channel.
Link copied to clipboard
abstract fun isOpen(): Boolean
Returns true if this channel is open.
Link copied to clipboard
abstract fun read(buffer: ByteBuffer): Int
Reads bytes from the channel into the given buffer.