Closeable
, AutoCloseable
, Channel
, InterruptibleChannel
, ReadableByteChannel
, ScatteringByteChannel
Pipe
public abstract static class Pipe.SourceChannel extends AbstractSelectableChannel implements ReadableByteChannel, ScatteringByteChannel
Pipe
.Modifier | Constructor | Description |
---|---|---|
protected |
Constructs a new instance of this class. |
Modifier and Type | Method | Description |
---|---|---|
final int |
validOps() |
Returns an operation set identifying this channel's supported operations. |
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register
register
begin, close, end, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
read, read
protected SourceChannel(SelectorProvider provider)
provider
- The selector providerpublic final int validOps()
Pipe-source channels only support reading, so this method returns SelectionKey.OP_READ
.
validOps
in class SelectableChannel
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/channels/Pipe.SourceChannel.html