Class SeekableReadableChannelSwitchable<A>

All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable, Channel, HasArrayOps<A>, HasPosition, ReadableChannel<A>, ReadableSource<A>, SeekableReadableChannel<A>

public class SeekableReadableChannelSwitchable<A> extends ReadableChannelSwitchableBase<A, SeekableReadableChannel<A>> implements SeekableReadableChannel<A>
  • Constructor Details

  • Method Details

    • position

      public long position() throws IOException
      Specified by:
      position in interface HasPosition
      Throws:
      IOException
    • position

      public void position(long pos) throws IOException
      Specified by:
      position in interface HasPosition
      Throws:
      IOException
    • cloneObject

      public SeekableReadableChannel<A> cloneObject()
      Description copied from interface: SeekableReadableChannel
      Optional operation. Open a new channel to the underlying source at the same position as this channel. The returned channel is an independent entity and needs to be closed separatedly. Opening a channel this way may be faster than opening a new channel at the source because information about this channel may be re-used (e.g. held pages and pointers into internal data structures)
      Specified by:
      cloneObject in interface SeekableReadableChannel<A>