All Superinterfaces:
AutoCloseable, Iterable<String[]>

public interface Sheet extends Iterable<String[]>, AutoCloseable
Interface to wrap different Excel implementations like JExcel or Apache POI.
Since:
0.1.0
Author:
Marten Deinum
  • 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

      @Nullable String[] getRow(int rowNumber)
      Get the row as a String[]. Returns null if the row doesn't exist. Can throw an UnsupportedOperationException when the underlying implementation doesn't support indexed access to rows.
      Parameters:
      rowNumber - the row number to read.
      Returns:
      a String[] or null
    • close

      default void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception