- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.SelectableChannel
-
- java.nio.channels.spi.AbstractSelectableChannel
-
- java.nio.channels.Pipe.SourceChannel
-
- All Implemented Interfaces:
-
Closeable
,AutoCloseable
,Channel
,InterruptibleChannel
,ReadableByteChannel
,ScatteringByteChannel
- Enclosing class:
- Pipe
public abstract static class Pipe.SourceChannel extends AbstractSelectableChannel implements ReadableByteChannel, ScatteringByteChannel
- 从以下版本开始:
- 1.4
-
-
构造方法摘要
构造方法 Modifier Constructor 描述 protected
SourceChannel(SelectorProvider provider)
构造一个这个类的新实例。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 int
validOps()
返回确定此频道支持的操作的操作集。-
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.nio.channels.ReadableByteChannel
read
-
Methods inherited from interface java.nio.channels.ScatteringByteChannel
read, read
-
Methods inherited from class java.nio.channels.SelectableChannel
register
-
-
-
-
构造方法详细信息
-
SourceChannel
protected SourceChannel(SelectorProvider provider)
构造一个这个类的新实例。- 参数
-
provider
- 选择器提供程序
-
-
方法详细信息
-
validOps
public final int validOps()
返回确定此频道支持的操作的操作集。管道信道仅支持读取,所以此方法返回
SelectionKey.OP_READ
。- Specified by:
-
validOps
在SelectableChannel
- 结果
- 有效操作集
-
-