*
* @throws IOException on any IO failures
*/
protected void setPosition(long pos) throws IOException {
if (getRecordSize() < 0) {
VariableIndexRow varRow = (VariableIndexRow) variableIndex.readRow((int) pos);
inputStream.seek(varRow.getOffset());
} else {
inputStream.seek(getAdjustedHeaderLength()
+ ((pos - 1) * getRecordSize()));
}
}