public class GreedyLazyWorkbookLoader extends Object implements WorkbookLoader
| Constructor and Description |
|---|
GreedyLazyWorkbookLoader(IOpenSourceCodeModule fileSource) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfSheets()
Get number of sheets in current workbook.
|
SheetLoader |
getSheetLoader(int sheetIndex)
Get the sheet accessor
|
SpreadsheetConstants |
getSpreadsheetConstants() |
org.apache.poi.ss.usermodel.Workbook |
getWorkbook()
Get the workbook.
|
boolean |
isCanUnload()
If true - the workbook can (but mustn't) be unloaded (for example if there is no enough memory).
|
void |
setCanUnload(boolean canUnload)
Set the flag that this workbook can or can't be unloaded.
|
public GreedyLazyWorkbookLoader(IOpenSourceCodeModule fileSource)
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
WorkbookLoaderWorkbookLoader.isCanUnload() state, when this method is repeatedly
called, it can (but mustn't) return different instances of workbook java object.getWorkbook in interface WorkbookLoaderWorkbookLoader.isCanUnload()public SheetLoader getSheetLoader(int sheetIndex)
WorkbookLoadergetSheetLoader in interface WorkbookLoadersheetIndex - the sheet index in the workbookpublic boolean isCanUnload()
WorkbookLoader
If true - the workbook can (but mustn't) be unloaded (for example if there is no enough memory). In this case
when the WorkbookLoader.getWorkbook() is repeatedly called, it can (but mustn't) return different instances of workbook
java object.
If false - the workbook is not unloaded and WorkbookLoader.getWorkbook() always returns the same Workbook instance.
isCanUnload in interface WorkbookLoaderWorkbookLoader.setCanUnload(boolean)public void setCanUnload(boolean canUnload)
WorkbookLoaderWorkbookLoader.getWorkbook()
always returns the same Workbook instance.setCanUnload in interface WorkbookLoadercanUnload - the flag that this workbook can or can't be unloadedWorkbookLoader.isCanUnload()public int getNumberOfSheets()
WorkbookLoadergetNumberOfSheets in interface WorkbookLoaderpublic SpreadsheetConstants getSpreadsheetConstants()
getSpreadsheetConstants in interface WorkbookLoaderCopyright © 2004–2019 OpenL Tablets. All rights reserved.