パッケージ org.nkjmlab.util.poi

クラス ExcelUtils


  • public class ExcelUtils
    extends Object
    • コンストラクタの詳細

      • ExcelUtils

        public ExcelUtils()
    • メソッドの詳細

      • readAllRows

        public static List<String> readAllRows​(File file,
                                               String sheetName,
                                               String cellSeparatorAfterConverted,
                                               String cellQuoteStringAfterConverted,
                                               String nullStringAfterConverted)
        パラメータ:
        file -
        sheetName -
        cellSeparatorAfterConverted -
        cellQuoteStringAfterConverted -
        nullStringAfterConverted -
        戻り値:
      • getColumnNames

        public static Map<String,​Integer> getColumnNames​(org.apache.poi.ss.usermodel.Sheet sheet)
      • getStringValue

        public static String getStringValue​(org.apache.poi.ss.usermodel.Cell cell)
      • getStringFormulaValue

        public static String getStringFormulaValue​(org.apache.poi.ss.usermodel.Cell cell)
        Example of calculating a formula in a cell and getting it as a String
        パラメータ:
        cell -
        戻り値:
      • getStringCachedFormulaValue

        public static String getStringCachedFormulaValue​(org.apache.poi.ss.usermodel.Cell cell)
        Example of getting the value cached in a cell as a String
        パラメータ:
        cell -
        戻り値:
      • getStringRangeValue

        public static String getStringRangeValue​(org.apache.poi.ss.usermodel.Cell cell)
        Example of getting the value of a combined cell as a String
        パラメータ:
        cell -
        戻り値:
      • getCell

        public static org.apache.poi.ss.usermodel.Cell getCell​(org.apache.poi.ss.usermodel.Sheet sheet,
                                                               int rowIndex,
                                                               int columnIndex)