Package java.nio.channels
Class Pipe.SinkChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.Pipe.SinkChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,GatheringByteChannel,InterruptibleChannel,WritableByteChannel
- Enclosing class:
- Pipe
public abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel
Writable sink channel used to write to a pipe.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSinkChannel(SelectorProvider provider)Constructs a newSinkChannel. -
Method Summary
Modifier and Type Method Description intvalidOps()Indicates that this channel only supports writing.Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class java.nio.channels.SelectableChannel
registerMethods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.GatheringByteChannel
write, writeMethods inherited from interface java.nio.channels.WritableByteChannel
write
-
Constructor Details
-
SinkChannel
Constructs a newSinkChannel.- Parameters:
provider- the provider of the channel.
-
-
Method Details
-
validOps
public final int validOps()Indicates that this channel only supports writing.- Specified by:
validOpsin classSelectableChannel- Returns:
- a static value of OP_WRITE.
-