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版本起:
- 1.4
-
Constructor Summary
-
Method Summary
Methods declared in class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register
Methods declared in class java.nio.channels.SelectableChannel
register
Methods declared in class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.nio.channels.GatheringByteChannel
write, write
Methods declared in interface java.nio.channels.WritableByteChannel
write
-
Constructor Details
-
SinkChannel
初始化此类的新实例。- 参数:
-
provider
- 选择器提供者
-
-
Method Details
-
validOps
public final int validOps()返回标识此通道支持的操作的操作集。管道-汇通道仅支持写入,因此此方法返回
SelectionKey.OP_WRITE
。- 指定者:
-
validOps
在类SelectableChannel
- 返回:
- 有效操作集
-