Bug 361443 Excel ODA
data/org.eclipse.birt.report.data.oda.excel/src/org/eclipse/birt/report/data/oda/excel/impl/util/ExcelFileSource.java
* @param resultSetMaxRows
	 * @return
	 */
	public int getMaxRowsToRead(int resultSetMaxRows) {
		this.resultSetMaxRows = resultSetMaxRows;
		return this.maxRowsToRead = ((this.statementMaxRows != 0 && this.statementMaxRows < this.resultSetMaxRows) || this.resultSetMaxRows == 0) ? this.statementMaxRows
				: this.resultSetMaxRows;
	}
	/**
	 *
	 *
	 */
	public void closeFileSource() {
		try {
			if (this.excelFileReader != null)
				this.excelFileReader.close();
		} catch (IOException e) {
		}
		this.excelFileReader = null;
	}
	/*
	 * (non-Javadoc)
	 *
	 * @see java.lang.Object#finalize()
	 */
	public void finalize() {
		this.closeFileSource();
	}
}