public class StreamingCell extends Object implements org.apache.poi.ss.usermodel.Cell
| Constructor and Description |
|---|
StreamingCell(int columnIndex,
int rowIndex,
boolean use1904Dates) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.poi.ss.util.CellAddress |
getAddress()
Not supported
|
org.apache.poi.ss.util.CellRangeAddress |
getArrayFormulaRange()
Not supported
|
boolean |
getBooleanCellValue()
Get the value of the cell as a boolean.
|
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultType()
Only valid for formula cells
|
org.apache.poi.ss.usermodel.CellType |
getCachedFormulaResultTypeEnum()
Deprecated.
|
org.apache.poi.ss.usermodel.Comment |
getCellComment()
Not supported
|
String |
getCellFormula()
Return a formula for the cell, for example,
SUM(C4:E4) |
org.apache.poi.ss.usermodel.CellStyle |
getCellStyle() |
org.apache.poi.ss.usermodel.CellType |
getCellType()
Return the cell type.
|
org.apache.poi.ss.usermodel.CellType |
getCellTypeEnum()
Deprecated.
|
int |
getColumnIndex()
Returns column index of this cell
|
Date |
getDateCellValue()
Get the value of the cell as a date.
|
byte |
getErrorCellValue()
Not supported
|
org.apache.poi.ss.usermodel.Hyperlink |
getHyperlink()
Not supported
|
double |
getNumericCellValue()
Get the value of the cell as a number.
|
String |
getNumericFormat() |
Short |
getNumericFormatIndex() |
org.apache.poi.xssf.usermodel.XSSFRichTextString |
getRichStringCellValue()
Get the value of the cell as a XSSFRichTextString
|
org.apache.poi.ss.usermodel.Row |
getRow()
Returns the Row this cell belongs to.
|
int |
getRowIndex()
Returns row index of a row in the sheet that contains this cell
|
org.apache.poi.ss.usermodel.Sheet |
getSheet()
Not supported
|
String |
getStringCellValue()
Get the value of the cell as a string.
|
String |
getType() |
boolean |
isFormulaType() |
boolean |
isPartOfArrayFormulaGroup()
Not supported
|
void |
removeCellComment()
Not supported
|
void |
removeHyperlink()
Not supported
|
void |
setAsActiveCell()
Not supported
|
void |
setCellComment(org.apache.poi.ss.usermodel.Comment comment)
Not supported
|
void |
setCellErrorValue(byte value)
Not supported
|
void |
setCellFormula(String formula)
Not supported
|
void |
setCellStyle(org.apache.poi.ss.usermodel.CellStyle cellStyle) |
void |
setCellType(org.apache.poi.ss.usermodel.CellType cellType)
Not supported
|
void |
setCellValue(boolean value)
Not supported
|
void |
setCellValue(Calendar value)
Not supported
|
void |
setCellValue(Date value)
Not supported
|
void |
setCellValue(double value)
Not supported
|
void |
setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
Not supported
|
void |
setCellValue(String value)
Not supported
|
void |
setContentSupplier(com.monitorjbl.xlsx.impl.Supplier contentsSupplier) |
void |
setFormula(String formula) |
void |
setFormulaType(boolean formulaType) |
void |
setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
Not supported
|
void |
setNumericFormat(String numericFormat) |
void |
setNumericFormatIndex(Short numericFormatIndex) |
void |
setRawContents(Object rawContents) |
void |
setRow(org.apache.poi.ss.usermodel.Row row) |
void |
setType(String type) |
public StreamingCell(int columnIndex,
int rowIndex,
boolean use1904Dates)
public void setContentSupplier(com.monitorjbl.xlsx.impl.Supplier contentsSupplier)
public void setRawContents(Object rawContents)
public String getNumericFormat()
public void setNumericFormat(String numericFormat)
public Short getNumericFormatIndex()
public void setNumericFormatIndex(Short numericFormatIndex)
public void setFormula(String formula)
public String getType()
public void setType(String type)
public boolean isFormulaType()
public void setFormulaType(boolean formulaType)
public void setRow(org.apache.poi.ss.usermodel.Row row)
public void setCellStyle(org.apache.poi.ss.usermodel.CellStyle cellStyle)
setCellStyle in interface org.apache.poi.ss.usermodel.Cellpublic int getColumnIndex()
getColumnIndex in interface org.apache.poi.ss.usermodel.Cellpublic int getRowIndex()
getRowIndex in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Row getRow()
getRow in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellType getCellType()
getCellType in interface org.apache.poi.ss.usermodel.Cell@Deprecated public org.apache.poi.ss.usermodel.CellType getCellTypeEnum()
getCellTypeEnum in interface org.apache.poi.ss.usermodel.CellgetCellType() when we make the CellType enum transition in POI 4.0. See bug 59791.public String getStringCellValue()
getStringCellValue in interface org.apache.poi.ss.usermodel.Cellpublic double getNumericCellValue()
getNumericCellValue in interface org.apache.poi.ss.usermodel.CellNumberFormatException - if the cell value isn't a parsable double.public Date getDateCellValue()
getDateCellValue in interface org.apache.poi.ss.usermodel.CellIllegalStateException - if the cell type returned by getCellType() is CELL_TYPE_STRINGNumberFormatException - if the cell value isn't a parsable double.public boolean getBooleanCellValue()
getBooleanCellValue in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.CellStyle getCellStyle()
getCellStyle in interface org.apache.poi.ss.usermodel.Cellpublic String getCellFormula()
SUM(C4:E4)getCellFormula in interface org.apache.poi.ss.usermodel.CellIllegalStateException - if the cell type returned by getCellType() is not CELL_TYPE_FORMULApublic org.apache.poi.ss.usermodel.CellType getCachedFormulaResultType()
getCachedFormulaResultType in interface org.apache.poi.ss.usermodel.CellCellType.NUMERIC, CellType.STRING,
CellType.BOOLEAN, CellType.ERROR) depending
on the cached value of the formula@Deprecated public org.apache.poi.ss.usermodel.CellType getCachedFormulaResultTypeEnum()
getCachedFormulaResultTypeEnum in interface org.apache.poi.ss.usermodel.Cellpublic void setCellType(org.apache.poi.ss.usermodel.CellType cellType)
setCellType in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Sheet getSheet()
getSheet in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(double value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Date value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(Calendar value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(org.apache.poi.ss.usermodel.RichTextString value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellValue(String value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellFormula(String formula) throws org.apache.poi.ss.formula.FormulaParseException
setCellFormula in interface org.apache.poi.ss.usermodel.Cellorg.apache.poi.ss.formula.FormulaParseExceptionpublic org.apache.poi.xssf.usermodel.XSSFRichTextString getRichStringCellValue()
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 org.apache.poi.ss.usermodel.Cellpublic void setCellValue(boolean value)
setCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setCellErrorValue(byte value)
setCellErrorValue in interface org.apache.poi.ss.usermodel.Cellpublic byte getErrorCellValue()
getErrorCellValue in interface org.apache.poi.ss.usermodel.Cellpublic void setAsActiveCell()
setAsActiveCell in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellAddress getAddress()
getAddress in interface org.apache.poi.ss.usermodel.Cellpublic void setCellComment(org.apache.poi.ss.usermodel.Comment comment)
setCellComment in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Comment getCellComment()
getCellComment in interface org.apache.poi.ss.usermodel.Cellpublic void removeCellComment()
removeCellComment in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.usermodel.Hyperlink getHyperlink()
getHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic void setHyperlink(org.apache.poi.ss.usermodel.Hyperlink link)
setHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic void removeHyperlink()
removeHyperlink in interface org.apache.poi.ss.usermodel.Cellpublic org.apache.poi.ss.util.CellRangeAddress getArrayFormulaRange()
getArrayFormulaRange in interface org.apache.poi.ss.usermodel.Cellpublic boolean isPartOfArrayFormulaGroup()
isPartOfArrayFormulaGroup in interface org.apache.poi.ss.usermodel.CellCopyright © 2018. All rights reserved.