Package org.openl.rules.lang.xls.load
Class LazySheetLoader
- java.lang.Object
-
- org.openl.rules.lang.xls.load.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 whengetSheet()is invoked.
-
-
Constructor Summary
Constructors Constructor Description LazySheetLoader(WorkbookLoader workbookLoader, int sheetIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CellLoadergetCellLoader(int column, int row)Get the cell accessor of current sheetorg.apache.poi.ss.usermodel.SheetgetSheet()Get the sheet.StringgetSheetName()Get the sheet name
-
-
-
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:
getSheetin interfaceSheetLoader- Returns:
- loaded sheet
-
getSheetName
public String getSheetName()
Get the sheet name- Specified by:
getSheetNamein interfaceSheetLoader- Returns:
- sheet name
-
getCellLoader
public CellLoader getCellLoader(int column, int row)
Get the cell accessor of current sheet- Specified by:
getCellLoaderin interfaceSheetLoader- Parameters:
column- the column of current sheetrow- the row of current sheet- Returns:
- the cell accessor of current sheet
-
-