WritableByteChannel

A channel that can write bytes.

Only one write operation upon a writable channel may be in progress at any given time. If one thread initiates a write operation upon a channel then any other thread that attempts to initiate another write operation will block until the first operation is complete. Whether or not other kinds of I/O operations may proceed concurrently with a write 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 write(src: ByteBuffer): Int

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