Class SeekableReadableChannelOmitBlockMarker<A, X extends SeekableReadableChannel<A>>

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

public class SeekableReadableChannelOmitBlockMarker<A, X extends SeekableReadableChannel<A>> extends SeekableReadableChannelDecoratorBase<A,X>
  • Constructor Details

    • SeekableReadableChannelOmitBlockMarker

      public SeekableReadableChannelOmitBlockMarker(X delegate)
  • Method Details

    • read

      public int read(A array, int position, int length) throws IOException
      Description copied from interface: ReadableSource
      Read method following the usual InputStream protocol.
      Specified by:
      read in interface ReadableSource<A>
      Overrides:
      read in class SeekableReadableChannelDecoratorBase<A, X extends SeekableReadableChannel<A>>
      Parameters:
      array - The array into which to put the read data
      position - Offset into array where to start writing
      length - Maximum number of items to read.
      Returns:
      The number of items read. Return -1 if end of data was reached, and 0 iff length was 0.
      Throws:
      IOException