Interface SeekableReadableChannel<A>

All Superinterfaces:
AutoCloseable, Channel, Cloneable, Closeable, HasArrayOps<A>, HasPosition, ReadableChannel<A>, ReadableSource<A>
All Known Implementing Classes:
BufferOverReadableChannel.Channel, SeekableReadableChannelBase, SeekableReadableChannelDecoratorBase, SeekableReadableChannelOmitBlockMarker, SeekableReadableChannelOverBuffer, SeekableReadableChannelOverNio, SeekableReadableChannelOverReadableChannel, SeekableReadableChannelSwitchable, SeekableReadableChannelWithLimit, SeekableReadableChannelWithMonitor, SeekableReadableChannelWithOffset

public interface SeekableReadableChannel<A> extends ReadableChannel<A>, HasPosition, Cloneable
  • Method Details

    • cloneObject

      SeekableReadableChannel<A> cloneObject()
      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)