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

クラス BasicExcelSheet


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

      • BasicExcelSheet

        public BasicExcelSheet​(File file,
                               String sheetName)
    • メソッドの詳細

      • procSheet

        public <T> T procSheet​(Function<org.apache.poi.ss.usermodel.Sheet,​T> sheetFunction)
      • readAllRows

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

        public List<List<org.apache.poi.ss.usermodel.Cell>> readAllCells()
      • readCell

        public org.apache.poi.ss.usermodel.Cell readCell​(int rowIndex,
                                                         int columnIndex)
      • readCell

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

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

        public static String toStringValue​(org.apache.poi.ss.usermodel.Cell cell)
      • toStringFormulaValue

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

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