java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.Pipe.SinkChannel
- 所有已实现的接口:
Closeable,AutoCloseable,Channel,GatheringByteChannel,InterruptibleChannel,WritableByteChannel
- 封闭类:
Pipe
public abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel , GatheringByteChannel
表示
Pipe 可写端的通道。
- 自从:
- 1.4
-
构造方法总结
构造方法 -
方法总结
在类 java.nio.channels.spi.AbstractSelectableChannel 中声明的方法
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register在类 java.nio.channels.SelectableChannel 中声明的方法
register在类 java.nio.channels.spi.AbstractInterruptibleChannel 中声明的方法
begin, close, end, isOpen在类 java.lang.Object 中声明的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait在接口 java.nio.channels.GatheringByteChannel 中声明的方法
write, write在接口 java.nio.channels.WritableByteChannel 中声明的方法
write
-
构造方法详细信息
-
SinkChannel
初始化此类的新实例。- 参数:
provider- 选择器提供者
-
-
方法详情
-
validOps
public final int validOps()返回标识此通道支持的操作的操作集。Pipe-sink 通道只支持写,所以这个方法返回
SelectionKey.OP_WRITE。- 指定者:
validOps在类SelectableChannel中- 返回:
- 有效操作集
-