Package org.openl.rules.lang.xls.load
Class SimpleSheetLoader
- java.lang.Object
-
- org.openl.rules.lang.xls.load.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 Summary
Constructors Constructor Description SimpleSheetLoader(org.apache.poi.ss.usermodel.Sheet sheet)
-
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
-
-
-
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:
getSheetin interfaceSheetLoader- Returns:
- previously 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
-
-