Closeable
, AutoCloseable
, Channel
, GatheringByteChannel
, InterruptibleChannel
, WritableByteChannel
Pipe
public abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel
Pipe
.Modifier | Constructor | Description |
---|---|---|
protected |
Initializes 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
write, write
write
protected SinkChannel(SelectorProvider provider)
provider
- The selector providerpublic final int validOps()
Pipe-sink channels only support writing, so this method returns SelectionKey.OP_WRITE
.
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.SinkChannel.html