修改项目名Easyexcel改名FastExcel同时兼容老的Easyexcel
This commit is contained in:
parent
46b926474c
commit
d686f6171a
@ -1,8 +1,8 @@
|
||||
package cn.idev.excel;
|
||||
|
||||
/**
|
||||
* This is actually {@link EasyExcelFactory}, and short names look better.
|
||||
* This is actually {@link FastExcelFactory}, and short names look better.
|
||||
*
|
||||
* @author jipengfei
|
||||
*/
|
||||
public class EasyExcel extends EasyExcelFactory {}
|
||||
public class EasyExcel extends FastExcelFactory {}
|
||||
|
10
fastexcel-core/src/main/java/cn/idev/excel/FastExcel.java
Normal file
10
fastexcel-core/src/main/java/cn/idev/excel/FastExcel.java
Normal file
@ -0,0 +1,10 @@
|
||||
package cn.idev.excel;
|
||||
|
||||
/**
|
||||
* This is actually {@link FastExcelFactory}, and short names look better.
|
||||
*
|
||||
* @author jipengfei
|
||||
*/
|
||||
public class FastExcel extends FastExcelFactory {
|
||||
|
||||
}
|
@ -16,7 +16,7 @@ import cn.idev.excel.write.builder.ExcelWriterTableBuilder;
|
||||
*
|
||||
* @author jipengfei
|
||||
*/
|
||||
public class EasyExcelFactory {
|
||||
public class FastExcelFactory {
|
||||
|
||||
/**
|
||||
* Build excel the write
|
@ -60,7 +60,7 @@ public class ExcelReaderSheetBuilder extends AbstractExcelReaderParameterBuilder
|
||||
*/
|
||||
public void doRead() {
|
||||
if (excelReader == null) {
|
||||
throw new ExcelGenerateException("Must use 'EasyExcelFactory.read().sheet()' to call this method");
|
||||
throw new ExcelGenerateException("Must use 'FastExcelFactory.read().sheet()' to call this method");
|
||||
}
|
||||
excelReader.read(build());
|
||||
excelReader.finish();
|
||||
@ -73,7 +73,7 @@ public class ExcelReaderSheetBuilder extends AbstractExcelReaderParameterBuilder
|
||||
*/
|
||||
public <T> List<T> doReadSync() {
|
||||
if (excelReader == null) {
|
||||
throw new ExcelAnalysisException("Must use 'EasyExcelFactory.read().sheet()' to call this method");
|
||||
throw new ExcelAnalysisException("Must use 'FastExcelFactory.read().sheet()' to call this method");
|
||||
}
|
||||
SyncReadListener syncReadListener = new SyncReadListener();
|
||||
registerReadListener(syncReadListener);
|
||||
|
@ -57,7 +57,7 @@ public class ExcelWriterSheetBuilder extends AbstractExcelWriterParameterBuilder
|
||||
|
||||
public void doWrite(Collection<?> data) {
|
||||
if (excelWriter == null) {
|
||||
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet()' to call this method");
|
||||
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet()' to call this method");
|
||||
}
|
||||
excelWriter.write(data, build());
|
||||
excelWriter.finish();
|
||||
@ -69,7 +69,7 @@ public class ExcelWriterSheetBuilder extends AbstractExcelWriterParameterBuilder
|
||||
|
||||
public void doFill(Object data, FillConfig fillConfig) {
|
||||
if (excelWriter == null) {
|
||||
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet()' to call this method");
|
||||
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet()' to call this method");
|
||||
}
|
||||
excelWriter.fill(data, fillConfig, build());
|
||||
excelWriter.finish();
|
||||
|
@ -50,7 +50,7 @@ public class ExcelWriterTableBuilder extends AbstractExcelWriterParameterBuilder
|
||||
|
||||
public void doWrite(Collection<?> data) {
|
||||
if (excelWriter == null) {
|
||||
throw new ExcelGenerateException("Must use 'EasyExcelFactory.write().sheet().table()' to call this method");
|
||||
throw new ExcelGenerateException("Must use 'FastExcelFactory.write().sheet().table()' to call this method");
|
||||
}
|
||||
excelWriter.write(data, writeSheet, build());
|
||||
excelWriter.finish();
|
||||
|
@ -4,8 +4,8 @@ import java.util.List;
|
||||
|
||||
import cn.idev.excel.EasyExcel;
|
||||
import cn.idev.excel.util.BeanMapUtils;
|
||||
import ai.chat2db.excel.support.cglib.beans.BeanMap;
|
||||
import ai.chat2db.excel.support.cglib.core.DebuggingClassWriter;
|
||||
import cn.idev.excel.support.cglib.beans.BeanMap;
|
||||
import cn.idev.excel.support.cglib.core.DebuggingClassWriter;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -11,7 +11,7 @@ import cn.idev.excel.util.BeanMapUtils;
|
||||
import cn.idev.excel.util.FileUtils;
|
||||
import cn.idev.excel.util.ListUtils;
|
||||
import cn.idev.excel.test.util.TestFileUtil;
|
||||
import ai.chat2db.excel.support.cglib.beans.BeanMap;
|
||||
import cn.idev.excel.support.cglib.beans.BeanMap;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.poi.ss.usermodel.ClientAnchor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user