format/src/main/java/com/github/sadikovi/riff/io/StripeInputBuffer.java
/**
   * Position cursor in input buffer to the desired position.
   * If position is negative or is larger than actual size of input buffer, exception is thrown.
   * @param position desired position in input buffer
   * @throws IOException when position is < 0 or >= length, or less than current position
   */
Position cursor in input buffer to the desired position.
If position is negative or is larger than actual size of input buffer, exception is thrown.
@param position desired position in input buffer
@throws IOException when position is < 0 or >= length, or less than current position
Position cursor in input buffer to the desired position . If position is negative or is larger than actual size of input buffer exception is thrown . @param position desired position in input buffer @throws IOException when position is < 0 or > = length or less than current position
public void seek(int position) throws IOException {
    if (position < 0 || position > data.length) {
      throw new IOException("Invalid position " + position + " for " + this);
    }
    if (position < offset) {
      throw new IOException("Cannot set position " + position + " < current offset " + offset);
    }
    offset = position;
  }
public void seek ( int position ) throws IOException { if ( position < 0 || position > data . length ) { throw new IOException ( "Invalid position " + position + " for " + this ) ; } if ( position < offset ) { throw new IOException ( "Cannot set position " + position + " < current offset " + offset ) ; } offset = position ; }
Position cursor in input buffer to the desired position.
Position cursor in input buffer to the desired position .