Interface Sheet
- All Superinterfaces:
AutoCloseable,Iterable<String[]>
Interface to wrap different Excel implementations like JExcel or Apache POI.
- Since:
- 0.1.0
- Author:
- Marten Deinum
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getNumberOfRows
int getNumberOfRows()Get the number of rows in this sheet.- Returns:
- the number of rows.
-
getName
String getName()Get the name of the sheet.- Returns:
- the name of the sheet.
-
getRow
Get the row as aString[]. Returnsnullif the row doesn't exist. Can throw anUnsupportedOperationExceptionwhen the underlying implementation doesn't support indexed access to rows.- Parameters:
rowNumber- the row number to read.- Returns:
- a
String[]ornull
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-