Closeable, AutoCloseable, Channel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannelpublic abstract static class Pipe.SourceChannel extends AbstractSelectableChannel implements ReadableByteChannel, ScatteringByteChannel
Pipe.| 限定符 | 构造器 | 说明 |
|---|---|---|
protected |
SourceChannel(SelectorProvider provider) |
Constructs 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, registerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadread, readregisterprotected SourceChannel(SelectorProvider provider)
provider - The selector providerpublic final int validOps()
Pipe-source channels only support reading, so this method
returns SelectionKey#OP_READ.
validOps 在类中 SelectableChannel