Added in API level 1

SinkChannel

abstract class SinkChannel : AbstractSelectableChannel, WritableByteChannel, GatheringByteChannel
kotlin.Any
   ↳ java.nio.channels.spi.AbstractInterruptibleChannel
   ↳ java.nio.channels.SelectableChannel
   ↳ java.nio.channels.spi.AbstractSelectableChannel
   ↳ java.nio.channels.Pipe.SinkChannel

A channel representing the writable end of a Pipe.

Summary

Protected constructors

Initializes a new instance of this class.

Public methods
Int

Returns an operation set identifying this channel's supported operations.

Inherited functions

Protected constructors

SinkChannel

Added in API level 1
protected SinkChannel(provider: SelectorProvider!)

Initializes a new instance of this class.

Parameters
provider SelectorProvider!: The selector provider

Public methods

validOps

Added in API level 1
fun validOps(): Int

Returns an operation set identifying this channel's supported operations.

Pipe-sink channels only support writing, so this method returns SelectionKey#OP_WRITE.

Return
Int The valid-operation set