ReadableByteChannel

A channel that can read bytes.

Only one read operation upon a readable channel may be in progress at any given time. If one thread initiates a read operation upon a channel then any other thread that attempts to initiate another read operation will block until the first operation is complete. Whether or not other kinds of I/O operations may proceed concurrently with a read operation depends upon the type of the channel.

Since

1.4

Inheritors

Functions

Link copied to clipboard
abstract override fun close()

Closes this channel.

Link copied to clipboard
abstract fun isOpen(): Boolean

Tells whether or not this channel is open.

Link copied to clipboard
abstract fun read(dst: ByteBuffer): Int

Reads a sequence of bytes from this channel into the given buffer.