java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.Pipe.SourceChannel
- 所有已实现的接口:
-
Closeable,AutoCloseable,Channel,InterruptibleChannel,ReadableByteChannel,ScatteringByteChannel
- 封闭类:
-
Pipe
public abstract static class Pipe.SourceChannel extends AbstractSelectableChannel implements ReadableByteChannel, ScatteringByteChannel
代表可读端的通道
Pipe。
- 自版本:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Methods declared in class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, registerMethods declared in class java.nio.channels.SelectableChannel
registerMethods declared in class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpenMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface java.nio.channels.ReadableByteChannel
readMethods declared in interface java.nio.channels.ScatteringByteChannel
read, read
-
Constructor Details
-
SourceChannel
构造此类的新实例。- 参数:
-
provider- 选择器提供者
-
-
Method Details
-
validOps
public final int validOps()返回标识此通道支持的操作的操作集。管道源通道仅支持读取,因此此方法返回
SelectionKey.OP_READ。- 指定者:
-
validOps在类SelectableChannel - 返回:
- 有效操作集
-