if (str instanceof RandomAccess) {
try {
str.skipBytes(nRows * rowLen);
} catch (IOException e) {
throw new FitsException("Error skipping data: " + e);
}
} else {
try {
getBuffer(rowLen * nRows, 0);
} catch (IOException e) {
throw new FitsException("Error reading ASCII table:" + e);
}
}
try {
str.skipBytes(FitsUtil.padding(nRows * rowLen));
} catch (IOException e) {
throw new FitsException("Error skipping padding:" + e);
}
}