POI 3.15中的getCellType是折旧的,我在文档中没有看到任何相同的等价物。
有人知道使用最新版本的poi获取单元格类型的方法。
问候利宾·塞巴斯蒂安
发布于 2016-12-02 10:32:55
您可以根据Apache getCellTypeEnum使用文档方法。它将返回CellType,它将具有以下单元格类型:_NONE、空、布尔、错误、公式、数字或字符串。
_NONE-Unknown type, used to represent a state prior to initialization or the lack of a concrete type.
BLANK-Blank cell type
BOOLEAN-Boolean cell type
ERROR-Error cell type
FORMULA-Formula cell type
NUMERIC-Numeric cell type (whole numbers, fractional numbers, dates)
STRING-String (text) cell typehttps://stackoverflow.com/questions/40929824
复制相似问题