ByteChannel

A ByteChannel is both readable and writable.

The methods for the byte channel are precisely those defined by readable and writable byte channels.

See also

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.
Link copied to clipboard
abstract fun write(buffer: ByteBuffer): Int
Writes bytes from the given buffer to the channel.