public class POIWorkBook extends Object implements IDAREWorkbook
Constructor and Description |
---|
POIWorkBook(org.apache.poi.ss.usermodel.Workbook wb) |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfSheets()
Get the number of individual data sheets present in this workbook
|
IDARESheet |
getSheet(String arg0)
Get the sheet with the specified name
|
IDARESheet |
getSheetAt(int arg0)
Get the Sheet at the requested position, or null if it does not exist-
|
int |
getSheetIndex(IDARESheet arg0)
Get the index of the provided
IDARESheet . |
int |
getSheetIndex(String arg0)
Get the 0-based index of a sheet with the provided name
|
String |
getSheetName(int arg0)
Get the name of the sheet at the provided position
|
public int getNumberOfSheets()
IDAREWorkbook
getNumberOfSheets
in interface IDAREWorkbook
public IDARESheet getSheet(String arg0)
IDAREWorkbook
getSheet
in interface IDAREWorkbook
arg0
- the name of the requested sheetIDARESheet
, or null if it does not exist.public IDARESheet getSheetAt(int arg0)
IDAREWorkbook
getSheetAt
in interface IDAREWorkbook
arg0
- the 0-based position of the Sheet.public int getSheetIndex(String arg0)
IDAREWorkbook
getSheetIndex
in interface IDAREWorkbook
arg0
- the name of the IDARESheet
public int getSheetIndex(IDARESheet arg0)
IDAREWorkbook
IDARESheet
.getSheetIndex
in interface IDAREWorkbook
arg0
- the Sheet for which to obtain the index.public String getSheetName(int arg0)
IDAREWorkbook
getSheetName
in interface IDAREWorkbook
arg0
- the position of the sheet for which to obtain the nameIDARESheet
, or null if the position does not contain a sheet.Copyright © 2018. All rights reserved.