パッケージ org.nkjmlab.util.poi
クラス ExcelUtils
- java.lang.Object
-
- org.nkjmlab.util.poi.ExcelUtils
-
public class ExcelUtils extends Object
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 ExcelUtils()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static org.apache.poi.ss.usermodel.CellgetCell(org.apache.poi.ss.usermodel.Sheet sheet, int rowIndex, int columnIndex)static Map<String,Integer>getColumnNames(org.apache.poi.ss.usermodel.Sheet sheet)static StringgetStringCachedFormulaValue(org.apache.poi.ss.usermodel.Cell cell)Example of getting the value cached in a cell as a Stringstatic StringgetStringFormulaValue(org.apache.poi.ss.usermodel.Cell cell)Example of calculating a formula in a cell and getting it as a Stringstatic StringgetStringRangeValue(org.apache.poi.ss.usermodel.Cell cell)Example of getting the value of a combined cell as a Stringstatic StringgetStringValue(org.apache.poi.ss.usermodel.Cell cell)static List<String>readAllRows(File file, String sheetName, String cellSeparatorAfterConverted, String cellQuoteStringAfterConverted, String nullStringAfterConverted)
-
-
-
メソッドの詳細
-
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)
-
-