* the 'active' sheet (which is the sheet with focus).
* Unselects sheets that are not in <code>indexes</code>.
*
- * @param indexes
+ * @param indexes Array of sheets to select, the index is 0-based.
*/
public void setSelectedTabs(int[] indexes) {
Collection<Integer> list = new ArrayList<Integer>(indexes.length);
* the 'active' sheet (which is the sheet with focus).
* Unselects sheets that are not in <code>indexes</code>.
*
- * @param indexes
+ * @param indexes Collection of sheets to select, the index is 0-based.
*/
public void setSelectedTabs(Collection<Integer> indexes) {
*/
@Override
public Iterator<Sheet> sheetIterator() {
- Iterator<Sheet> result = new SheetIterator<Sheet>();
- return result;
+ return new SheetIterator<Sheet>();
}
/**
/**
* Closes the underlying {@link NPOIFSFileSystem} from which
- * the Workbook was read, if any. Has no effect on Workbooks
- * opened from an InputStream, or newly created ones.
- * <p>Once {@link #close()} has been called, no further
+ * the Workbook was read, if any.
+ *
+ * <p>Once this has been called, no further
* operations, updates or reads should be performed on the
* Workbook.
*/
/**
* Close the underlying input resource (File or Stream),
- * from which the Workbook was read. After closing, the
- * Workbook should no longer be used.
- * <p>This will have no effect newly created Workbooks.
+ * from which the Workbook was read.
+ *
+ * <p>Once this has been called, no further
+ * operations, updates or reads should be performed on the
+ * Workbook.
*/
@Override
void close() throws IOException;
/**
* Closes the underlying {@link OPCPackage} from which this
* document was read, if there is one
- *
- * @throws IOException for writable packages, if an IO exception occur during the saving process.
+ *
+ * <p>Once this has been called, no further
+ * operations, updates or reads should be performed on the
+ * document.
+ *
+ * @throws IOException for writable packages, if an IO exception occur during the saving process.
*/
@Override
public void close() throws IOException {
/**
* Closes the underlying {@link XSSFWorkbook} and {@link OPCPackage}
- * on which this Workbook is based, if any. Has no effect on Workbooks
- * created from scratch.
+ * on which this Workbook is based, if any.
+ *
+ * <p>Once this has been called, no further
+ * operations, updates or reads should be performed on the
+ * Workbook.
*/
@Override
public void close() throws IOException {