Class SimpleSheetLoader

  • All Implemented Interfaces:
    SheetLoader

    public class SimpleSheetLoader
    extends Object
    implements SheetLoader
    Stores the strong reference to previously loaded Sheet instance and is not unloaded.
    • Constructor Detail

      • SimpleSheetLoader

        public SimpleSheetLoader​(org.apache.poi.ss.usermodel.Sheet sheet)
    • Method Detail

      • getSheet

        public org.apache.poi.ss.usermodel.Sheet getSheet()
        Get the sheet. When this method is repeatedly called, always returns the same instance of Sheet java object.
        Specified by:
        getSheet in interface SheetLoader
        Returns:
        previously loaded sheet
      • getCellLoader

        public CellLoader getCellLoader​(int column,
                                        int row)
        Get the cell accessor of current sheet
        Specified by:
        getCellLoader in interface SheetLoader
        Parameters:
        column - the column of current sheet
        row - the row of current sheet
        Returns:
        the cell accessor of current sheet