org.apache.poi.hssf.usermodel.HSSFWorkbook.getMissingCellPolicy()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中org.apache.poi.hssf.usermodel.HSSFWorkbook.getMissingCellPolicy()方法的一些代码示例,展示了HSSFWorkbook.getMissingCellPolicy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFWorkbook.getMissingCellPolicy()方法的具体详情如下:
包路径:org.apache.poi.hssf.usermodel.HSSFWorkbook
类名称:HSSFWorkbook
方法名:getMissingCellPolicy

HSSFWorkbook.getMissingCellPolicy介绍

[英]Retrieves the current policy on what to do when getting missing or blank cells from a row. The default is to return blank and null cells. MissingCellPolicy
[中]检索当前策略,说明从行中获取丢失或空白单元格时要执行的操作。默认情况下,返回空白和空单元格。缺失细胞政策

代码示例

代码示例来源:origin: org.apache.poi/poi

  1. /**
  2. * Get the hssfcell representing a given column (logical cell)
  3. * 0-based. If you ask for a cell that is not defined then
  4. * you get a null, unless you have set a different
  5. * {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} on the base workbook.
  6. *
  7. * @param cellnum 0 based column number
  8. * @return HSSFCell representing that column or null if undefined.
  9. */
  10. @Override
  11. public HSSFCell getCell(int cellnum) {
  12. return getCell(cellnum, book.getMissingCellPolicy());
  13. }

代码示例来源:origin: com.haulmont.thirdparty/poi

  1. /**
  2. * Get the hssfcell representing a given column (logical cell)
  3. * 0-based. If you ask for a cell that is not defined then
  4. * you get a null, unless you have set a different
  5. * {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} on the base workbook.
  6. *
  7. * @param cellnum 0 based column number
  8. * @return HSSFCell representing that column or null if undefined.
  9. */
  10. public HSSFCell getCell(int cellnum) {
  11. return getCell(cellnum, book.getMissingCellPolicy());
  12. }

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

  1. /**
  2. * Get the hssfcell representing a given column (logical cell)
  3. * 0-based. If you ask for a cell that is not defined then
  4. * you get a null, unless you have set a different
  5. * {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} on the base workbook.
  6. *
  7. * @param cellnum 0 based column number
  8. * @return HSSFCell representing that column or null if undefined.
  9. */
  10. public HSSFCell getCell(int cellnum) {
  11. return getCell(cellnum, book.getMissingCellPolicy());
  12. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. /**
  2. * Get the hssfcell representing a given column (logical cell)
  3. * 0-based. If you ask for a cell that is not defined then
  4. * you get a null, unless you have set a different
  5. * {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} on the base workbook.
  6. *
  7. * @param cellnum 0 based column number
  8. * @return HSSFCell representing that column or null if undefined.
  9. */
  10. @Override
  11. public HSSFCell getCell(int cellnum) {
  12. return getCell(cellnum, book.getMissingCellPolicy());
  13. }

相关文章

HSSFWorkbook类方法