Pipe.SinkChannel (Java Platform SE 7 ) (original) (raw)
- java.nio.channels.spi.AbstractInterruptibleChannel
- java.nio.channels.SelectableChannel
- java.nio.channels.spi.AbstractSelectableChannel
* * java.nio.channels.Pipe.SinkChannel
- java.nio.channels.spi.AbstractSelectableChannel
- java.nio.channels.SelectableChannel
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, GatheringByteChannel, InterruptibleChannel, WritableByteChannel
Enclosing class:
Pipe
public abstract static class Pipe.SinkChannel
extends AbstractSelectableChannel
implements WritableByteChannel, GatheringByteChannel
A channel representing the writable end of a Pipe.
Since:
1.4
Constructor Summary
Constructors
Modifier Constructor and Description protected Pipe.SinkChannel(SelectorProvider provider) Initializes a new instance of this class. Method Summary
Methods
Modifier and Type Method and Description int validOps() Returns an operation set identifying this channel's supported operations. * ### Methods inherited from class java.nio.channels.spi.[AbstractSelectableChannel](../../../java/nio/channels/spi/AbstractSelectableChannel.html "class in java.nio.channels.spi") `[blockingLock](../../../java/nio/channels/spi/AbstractSelectableChannel.html#blockingLock%28%29), [configureBlocking](../../../java/nio/channels/spi/AbstractSelectableChannel.html#configureBlocking%28boolean%29), [implCloseChannel](../../../java/nio/channels/spi/AbstractSelectableChannel.html#implCloseChannel%28%29), [implCloseSelectableChannel](../../../java/nio/channels/spi/AbstractSelectableChannel.html#implCloseSelectableChannel%28%29), [implConfigureBlocking](../../../java/nio/channels/spi/AbstractSelectableChannel.html#implConfigureBlocking%28boolean%29), [isBlocking](../../../java/nio/channels/spi/AbstractSelectableChannel.html#isBlocking%28%29), [isRegistered](../../../java/nio/channels/spi/AbstractSelectableChannel.html#isRegistered%28%29), [keyFor](../../../java/nio/channels/spi/AbstractSelectableChannel.html#keyFor%28java.nio.channels.Selector%29), [provider](../../../java/nio/channels/spi/AbstractSelectableChannel.html#provider%28%29), [register](../../../java/nio/channels/spi/AbstractSelectableChannel.html#register%28java.nio.channels.Selector,%20int,%20java.lang.Object%29)` * ### Methods inherited from class java.nio.channels.[SelectableChannel](../../../java/nio/channels/SelectableChannel.html "class in java.nio.channels") `[register](../../../java/nio/channels/SelectableChannel.html#register%28java.nio.channels.Selector,%20int%29)` * ### Methods inherited from class java.nio.channels.spi.[AbstractInterruptibleChannel](../../../java/nio/channels/spi/AbstractInterruptibleChannel.html "class in java.nio.channels.spi") `[begin](../../../java/nio/channels/spi/AbstractInterruptibleChannel.html#begin%28%29), [close](../../../java/nio/channels/spi/AbstractInterruptibleChannel.html#close%28%29), [end](../../../java/nio/channels/spi/AbstractInterruptibleChannel.html#end%28boolean%29), [isOpen](../../../java/nio/channels/spi/AbstractInterruptibleChannel.html#isOpen%28%29)` * ### Methods inherited from class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone%28%29), [equals](../../../java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java/lang/Object.html#finalize%28%29), [getClass](../../../java/lang/Object.html#getClass%28%29), [hashCode](../../../java/lang/Object.html#hashCode%28%29), [notify](../../../java/lang/Object.html#notify%28%29), [notifyAll](../../../java/lang/Object.html#notifyAll%28%29), [toString](../../../java/lang/Object.html#toString%28%29), [wait](../../../java/lang/Object.html#wait%28%29), [wait](../../../java/lang/Object.html#wait%28long%29), [wait](../../../java/lang/Object.html#wait%28long,%20int%29)` * ### Methods inherited from interface java.nio.channels.[GatheringByteChannel](../../../java/nio/channels/GatheringByteChannel.html "interface in java.nio.channels") `[write](../../../java/nio/channels/GatheringByteChannel.html#write%28java.nio.ByteBuffer[]%29), [write](../../../java/nio/channels/GatheringByteChannel.html#write%28java.nio.ByteBuffer[],%20int,%20int%29)` * ### Methods inherited from interface java.nio.channels.[WritableByteChannel](../../../java/nio/channels/WritableByteChannel.html "interface in java.nio.channels") `[write](../../../java/nio/channels/WritableByteChannel.html#write%28java.nio.ByteBuffer%29)` * ### Methods inherited from interface java.nio.channels.[Channel](../../../java/nio/channels/Channel.html "interface in java.nio.channels") `[close](../../../java/nio/channels/Channel.html#close%28%29), [isOpen](../../../java/nio/channels/Channel.html#isOpen%28%29)`Constructor Detail
* #### Pipe.SinkChannel protected Pipe.SinkChannel([SelectorProvider](../../../java/nio/channels/spi/SelectorProvider.html "class in java.nio.channels.spi") provider) Initializes a new instance of this class.Method Detail
* #### validOps public final int validOps() Returns an operation set identifying this channel's supported operations. Pipe-sink channels only support writing, so this method returns[SelectionKey.OP\_WRITE](../../../java/nio/channels/SelectionKey.html#OP%5FWRITE). **Specified by:** `[validOps](../../../java/nio/channels/SelectableChannel.html#validOps%28%29)` in class `[SelectableChannel](../../../java/nio/channels/SelectableChannel.html "class in java.nio.channels")` Returns: The valid-operation set
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.