Closeable, AutoCloseable, Channel, GatheringByteChannel, InterruptibleChannel, WritableByteChannelpublic abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel
Pipe.| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
SinkChannel(SelectorProvider provider) |
Initializes a new instance of this class.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
validOps() |
Returns an operation set identifying this channel's supported
operations.
|
begin, close, end, isOpenblockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, registerwrite, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterwriteprotected SinkChannel(SelectorProvider provider)
provider - The selector providerpublic final int validOps()
Pipe-sink channels only support writing, so this method returns
SelectionKey#OP_WRITE.
validOps 在类中 SelectableChannel