Class LazySheetLoader

  • All Implemented Interfaces:
    SheetLoader

    public class LazySheetLoader
    extends Object
    implements SheetLoader
    Provides lazy access to the Sheet. If corresponding workbook was garbage collected previously, it will bec loaded again when getSheet() is invoked.
    • Constructor Detail

      • LazySheetLoader

        public LazySheetLoader​(WorkbookLoader workbookLoader,
                               int sheetIndex)
    • Method Detail

      • getSheet

        public org.apache.poi.ss.usermodel.Sheet getSheet()
        Get the sheet. When this method is repeatedly called, it can (but mustn't) return the different instances of Sheet java object.
        Specified by:
        getSheet in interface SheetLoader
        Returns:
        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