ByteChannel

A channel that can read and write bytes. This interface simply unifies ReadableByteChannel and WritableByteChannel; it does not specify any new operations.

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.

Link copied to clipboard
abstract fun write(src: ByteBuffer): Int

Writes a sequence of bytes to this channel from the given buffer.