Added in API level 1

SourceChannel

abstract class SourceChannel : AbstractSelectableChannel, ReadableByteChannel, ScatteringByteChannel
kotlin.Any
   ↳ java.nio.channels.spi.AbstractInterruptibleChannel
   ↳ java.nio.channels.SelectableChannel
   ↳ java.nio.channels.spi.AbstractSelectableChannel
   ↳ java.nio.channels.Pipe.SourceChannel

A channel representing the readable end of a Pipe.

Summary

Protected constructors

Constructs a new instance of this class.

Public methods
Int

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

Inherited functions

Protected constructors

SourceChannel

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

Constructs 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-source channels only support reading, so this method returns SelectionKey#OP_READ.

Return
Int The valid-operation set