You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2008/07/11 00:39:53 UTC
svn commit: r675792 -
/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
Author: nick
Date: Thu Jul 10 15:39:53 2008
New Revision: 675792
URL: http://svn.apache.org/viewvc?rev=675792&view=rev
Log:
Improve javadocs relating to getLastRowNumber
Modified:
poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
Modified: poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java?rev=675792&r1=675791&r2=675792&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java Thu Jul 10 15:39:53 2008
@@ -347,18 +347,25 @@
}
/**
- * gets the first row on the sheet
- * @return the number of the first logical row on the sheet
+ * Gets the first row on the sheet
+ * @return the number of the first logical row on the sheet, zero based
*/
-
public int getFirstRowNum()
{
return firstrow;
}
/**
- * gets the last row on the sheet
- * @return last row contained n this sheet.
+ * Gets the number last row on the sheet.
+ * Owing to idiosyncrasies in the excel file
+ * format, if the result of calling this method
+ * is zero, you can't tell if that means there
+ * are zero rows on the sheet, or one at
+ * position zero. For that case, additionally
+ * call {@link #getPhysicalNumberOfRows()} to
+ * tell if there is a row at position zero
+ * or not.
+ * @return the number of the last row contained in this sheet, zero based.
*/
public int getLastRowNum()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org