Class Pipe.SourceChannel

All Implemented Interfaces:
Closeable, AutoCloseable, Channel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel
Enclosing class:
Pipe

public abstract static class Pipe.SourceChannel
extends AbstractSelectableChannel
implements ReadableByteChannel, ScatteringByteChannel
Readable source channel used to read from a pipe.
  • Constructor Details

    • SourceChannel

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

    • validOps

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