- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.SelectableChannel
-
- java.nio.channels.spi.AbstractSelectableChannel
-
- java.nio.channels.Pipe.SinkChannel
-
- All Implemented Interfaces:
-
Closeable
,AutoCloseable
,Channel
,GatheringByteChannel
,InterruptibleChannel
,WritableByteChannel
- Enclosing class:
- Pipe
public abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel
- 从以下版本开始:
- 1.4
-
-
构造方法摘要
构造方法 Modifier Constructor 描述 protected
SinkChannel(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 interface java.nio.channels.GatheringByteChannel
write, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class java.nio.channels.SelectableChannel
register
-
Methods inherited from interface java.nio.channels.WritableByteChannel
write
-
-
-
-
构造方法详细信息
-
SinkChannel
protected SinkChannel(SelectorProvider provider)
初始化此类的新实例。- 参数
-
provider
- 选择器提供程序
-
-
方法详细信息
-
validOps
public final int validOps()
返回确定此频道支持的操作的操作集。管道通道只支持写入,所以此方法返回
SelectionKey.OP_WRITE
。- Specified by:
-
validOps
在SelectableChannel
- 结果
- 有效操作集
-
-