com.orion.office.excel.writer.ExcelArrayWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orion-office Show documentation
Show all versions of orion-office Show documentation
orion office (excel csv and more...)
package com.orion.office.excel.writer;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
/**
* excel array 写入器
*
* @author Jiahang Li
* @version 1.0.0
* @since 2021/1/13 13:54
*/
public class ExcelArrayWriter extends BaseExcelWriter {
public ExcelArrayWriter(Workbook workbook, Sheet sheet) {
super(workbook, sheet);
}
@Override
protected Object getValue(T[] row, Integer key) {
if (row.length <= key) {
return null;
}
return row[key];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy