WritableByteChannel

A WritableByteChannel is a type of Channel that can write bytes.

Write operations are synchronous on a WritableByteChannel, that is, if a write is already in progress on the channel then subsequent writes will block until the first write completes. It is undefined whether non-write 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 write(buffer: ByteBuffer): Int
Writes bytes from the given buffer to the channel.