パッケージ org.nkjmlab.util.poi
クラス BasicExcelSheet
- java.lang.Object
-
- org.nkjmlab.util.poi.BasicExcelSheet
-
public class BasicExcelSheet extends Object
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classBasicExcelSheet.Builder
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 BasicExcelSheet(File file, String sheetName)
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 static BasicExcelSheet.Builderbuilder(File file, String sheetName)<T> TprocSheet(Function<org.apache.poi.ss.usermodel.Sheet,T> sheetFunction)List<List<org.apache.poi.ss.usermodel.Cell>>readAllCells()List<String>readAllRows(String cellSeparatorAfterConverted, String cellQuoteStringAfterConverted, String nullStringAfterConverted)org.apache.poi.ss.usermodel.CellreadCell(int rowIndex, int columnIndex)static org.apache.poi.ss.usermodel.CellreadCell(org.apache.poi.ss.usermodel.Sheet sheet, int rowIndex, int columnIndex)Map<String,Integer>readFirstRowAsHeader()static StringtoMergedCellString(org.apache.poi.ss.usermodel.Cell cell)Example of getting the value of a merged cell as a Stringstatic StringtoStringCachedFormulaValue(org.apache.poi.ss.usermodel.Cell cell)Example of getting the value cached in a cell as a Stringstatic StringtoStringFormulaValue(org.apache.poi.ss.usermodel.Cell cell)Example of calculating a formula in a cell and getting it as a Stringstatic StringtoStringValue(org.apache.poi.ss.usermodel.Cell cell)
-
-
-
メソッドの詳細
-
builder
public static BasicExcelSheet.Builder builder(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-- 戻り値:
-
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-- 戻り値:
-
-