| Constructor and Description |
|---|
StreamingCell(Sheet sheet,
int columnIndex,
int rowIndex,
boolean use1904Dates) |
StreamingCell(Sheet sheet,
int columnIndex,
Row row,
boolean use1904Dates) |
| Modifier and Type | Method and Description |
|---|---|
CellAddress |
getAddress() |
CellRangeAddress |
getArrayFormulaRange()
Not supported
|
boolean |
getBooleanCellValue()
Get the value of the cell as a boolean.
|
CellType |
getCachedFormulaResultType()
Only valid for formula cells
|
Comment |
getCellComment()
Returns cell comment associated with this cell
|
String |
getCellFormula()
Return a formula for the cell, for example,
SUM(C4:E4) |
CellStyle |
getCellStyle() |
CellType |
getCellType()
Return the cell type.
|
int |
getColumnIndex()
Returns column index of this cell
|
Date |
getDateCellValue()
Get the value of the cell as a date.
|
byte |
getErrorCellValue() |
Hyperlink |
getHyperlink()
Returns hyperlink associated with this cell.
|
LocalDateTime |
getLocalDateTimeCellValue() |
double |
getNumericCellValue()
Get the value of the cell as a number.
|
String |
getNumericFormat() |
XSSFRichTextString |
getRichStringCellValue()
Get the value of the cell as a XSSFRichTextString
|
Row |
getRow()
Row is not guaranteed to be set.
|
int |
getRowIndex()
Returns row index of a row in the sheet that contains this cell
|
Sheet |
getSheet() |
String |
getStringCellValue()
Get the value of the cell as a string.
|
boolean |
isPartOfArrayFormulaGroup()
Not supported
|
void |
removeCellComment()
Update operations are not supported
|
void |
removeFormula()
Update operations are not supported
|
void |
removeHyperlink()
Update operations are not supported
|
void |
setAsActiveCell()
Update operations are not supported
|
void |
setBlank()
Update operations are not supported
|
void |
setCellComment(Comment comment)
Update operations are not supported
|
void |
setCellErrorValue(byte value)
Update operations are not supported
|
void |
setCellFormula(String formula)
Update operations are not supported
|
void |
setCellStyle(CellStyle cellStyle) |
void |
setCellType(CellType cellType)
Update operations are not supported
|
void |
setCellValue(boolean value)
Update operations are not supported
|
void |
setCellValue(Calendar value)
Update operations are not supported
|
void |
setCellValue(Date value)
Update operations are not supported
|
void |
setCellValue(double value)
Update operations are not supported
|
void |
setCellValue(LocalDate value)
Update operations are not supported
|
void |
setCellValue(LocalDateTime value)
Update operations are not supported
|
void |
setCellValue(RichTextString value)
Update operations are not supported
|
void |
setCellValue(String value)
Update operations are not supported
|
void |
setHyperlink(Hyperlink link)
Update operations are not supported
|
public StreamingCell(Sheet sheet, int columnIndex, int rowIndex, boolean use1904Dates)
public String getNumericFormat()
public void setCellStyle(CellStyle cellStyle)
setCellStyle in interface Cellpublic int getColumnIndex()
getColumnIndex in interface Cellpublic int getRowIndex()
getRowIndex in interface Cellpublic Row getRow()
public CellType getCellType() throws POIXMLException
getCellType in interface CellPOIXMLException - if the value is not parseablepublic String getStringCellValue() throws POIXMLException
getStringCellValue in interface CellPOIXMLException - if the value is not parseablepublic double getNumericCellValue()
getNumericCellValue in interface CellNumberFormatException - if the cell value isn't a parseable double.public Date getDateCellValue()
getDateCellValue in interface CellIllegalStateException - if the cell type returned by getCellType() is CELL_TYPE_STRINGNumberFormatException - if the cell value isn't a parseable double.public boolean getBooleanCellValue()
getBooleanCellValue in interface Cellpublic CellStyle getCellStyle()
getCellStyle in interface Cellpublic String getCellFormula()
SUM(C4:E4)getCellFormula in interface CellIllegalStateException - if the cell type returned by getCellType() is not CELL_TYPE_FORMULA or
if the cell has a shared formula that can't be evaluatedpublic XSSFRichTextString getRichStringCellValue() throws POIXMLException
For numeric cells, we throw an exception. For blank cells, we return an empty string. For formula cells, we return the pre-calculated value if a string, otherwise an exception
getRichStringCellValue in interface CellNotSupportedException - if the cell type is unsupportedPOIXMLException - if the value is not parseablepublic CellType getCachedFormulaResultType() throws POIXMLException
getCachedFormulaResultType in interface CellCellType.NUMERIC, CellType.STRING,
CellType.BOOLEAN, CellType.ERROR) depending
on the cached value of the formulaIllegalStateException - if cell is not formula typeNotSupportedException - if cell formula type is unknownPOIXMLException - if the value is not parseablepublic LocalDateTime getLocalDateTimeCellValue()
getLocalDateTimeCellValue in interface Cellpublic byte getErrorCellValue()
getErrorCellValue in interface Cellpublic CellAddress getAddress()
getAddress in interface Cellpublic Comment getCellComment()
getCellComment in interface CellnullIllegalStateException - if StreamingReader.Builder.setReadComments(boolean) is not set to truepublic Hyperlink getHyperlink()
getHyperlink in interface CellnullIllegalStateException - if StreamingReader.Builder.setReadHyperlinks(boolean) is not set to truepublic void setCellType(CellType cellType)
setCellType in interface CellNotSupportedException - not supportedpublic void setBlank()
setBlank in interface CellNotSupportedException - not supportedpublic void setCellValue(double value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(Date value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(Calendar value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(LocalDate value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(LocalDateTime value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(RichTextString value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellValue(String value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellFormula(String formula)
setCellFormula in interface CellNotSupportedException - not supportedpublic void removeFormula()
removeFormula in interface CellNotSupportedException - not supportedpublic void setCellValue(boolean value)
setCellValue in interface CellNotSupportedException - not supportedpublic void setCellErrorValue(byte value)
setCellErrorValue in interface CellNotSupportedException - not supportedpublic void setAsActiveCell()
setAsActiveCell in interface CellNotSupportedException - not supportedpublic void setCellComment(Comment comment)
setCellComment in interface CellNotSupportedException - not supportedpublic void removeCellComment()
removeCellComment in interface CellNotSupportedException - not supportedpublic void setHyperlink(Hyperlink link)
setHyperlink in interface CellNotSupportedException - not supportedpublic void removeHyperlink()
removeHyperlink in interface CellNotSupportedException - not supportedpublic CellRangeAddress getArrayFormulaRange()
getArrayFormulaRange in interface CellNotSupportedException - not supportedpublic boolean isPartOfArrayFormulaGroup()
isPartOfArrayFormulaGroup in interface CellNotSupportedException - not supported