public interface IWorkbookReader
Modifier and Type | Method and Description |
---|---|
boolean |
getDetectHeader()
Get if the the header row should be identified automatically.
|
int |
getDocumentType()
Returns the type of the currently read xls document.
|
Integer |
getEndColumnIndex()
Get the index of the column where the data reading should finish.
|
Integer |
getEndRowIndex()
Get the index of the row where the data reading should finish.
|
Integer |
getHeaderRowIndex()
Gets the absolute index of the header row.
|
boolean |
getIsReadStructuresOnly()
Defines if only the structures should be read from the workbook or the properties as well.
|
ArrayList<String> |
getSheetNames()
Returns the list of Worksheet names from the Xls Workbook
|
Integer |
getStartColumnIndex()
Get the index of the column from where the data reading should start.
|
Integer |
getStartRowIndex()
Get the index of the row from where the data reading should start.
|
Object |
getWorkBook()
Get the XSSFWorkBook as object
|
Iterable<IMoleculeMap> |
read(String sheetName)
Gets all the structures from the given sheet based on the range given in FirstRowIndex,
LastRowIndex, FirstColumnIndex, LastColumnIndex.
|
Iterable<IMoleculeMap> |
readActiveSheet()
Gets all the structures from the active sheet based on the range given in FirstRowIndex,
LastRowIndex, FirstColumnIndex, LastColumnIndex.
|
Iterable<IMoleculeMap> |
readAllSheets()
Gets all the structures from the workbook based on the range given in FirstRowIndex,
LastRowIndex, FirstColumnIndex, LastColumnIndex.
|
void |
setDetectHeader(boolean detectHeader)
Set if the the header row should be identified automatically.
|
void |
setEndColumnIndex(Integer index)
Set the index of the column where the data reading should finish.
|
void |
setEndRowIndex(Integer index)
Set the index of the row where the data reading should finish.
|
void |
setHeaderRowIndex(Integer headerRowIndex)
Sets the absolute index of the header row.
|
void |
setIsReadStructuresOnly(boolean readStructuresOnly)
Defines if only the structures should be read from the workbook or the properties as well.
|
void |
setStartColumnIndex(Integer index)
Set the index of the column from where the data reading should start.
|
void |
setStartRowIndex(Integer index)
Set the index of the row from where the data reading should start.
|
Object getWorkBook()
int getDocumentType()
ArrayList<String> getSheetNames()
Integer getStartRowIndex()
void setStartRowIndex(Integer index)
index
- : the start row index (indexing start from 0). Default is null.Integer getEndRowIndex()
void setEndRowIndex(Integer index)
index
- : the end row index (indexing start from 0). Default is null.Integer getStartColumnIndex()
void setStartColumnIndex(Integer index)
index
- : the start column index (indexing start from 0). Default is null.Integer getEndColumnIndex()
void setEndColumnIndex(Integer index)
index
- : the end column index (indexing start from 0). Default is null.boolean getDetectHeader()
void setDetectHeader(boolean detectHeader)
detectHeader
- : true if the header should be identified automatically, false otherwise. Default
is false.Integer getHeaderRowIndex()
void setHeaderRowIndex(Integer headerRowIndex)
headerRowIndex
- : 0 based index of the header row. Default is null.boolean getIsReadStructuresOnly()
void setIsReadStructuresOnly(boolean readStructuresOnly)
readStructuresOnly
- : true if only the structures should be read from the workbook otherwise false.
Default false.Iterable<IMoleculeMap> readActiveSheet() throws Exception
Exception
Iterable<IMoleculeMap> read(String sheetName) throws Exception
Exception
Iterable<IMoleculeMap> readAllSheets() throws Exception
Exception