Class 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 Details

    • SinkChannel

      protected SinkChannel​(SelectorProvider provider)
      Constructs a new SinkChannel.
      Parameters:
      provider - the provider of the channel.
  • Method Details

    • validOps

      public final int validOps()
      Indicates that this channel only supports writing.
      Specified by:
      validOps in class SelectableChannel
      Returns:
      a static value of OP_WRITE.