}
/** Modify a row in the table */
public void setRow(int row, Object[] newData) throws FitsException {
if (row < 0 || row > nRows) {
throw new FitsException("Invalid row in setRow");
}
if (data == null) {
getData();
}
for (int i = 0; i < nFields; i += 1) {
try {
System.arraycopy(newData[i], 0, data[i], row, 1);
} catch (Exception e) {
throw new FitsException(
"Unable to modify row: incompatible data:" + row);
}
}
// Invalidate the buffer