forked from fanruan/easyexcel
jipengfei.jpf
7 years ago
34 changed files with 84 additions and 190 deletions
@ -1,59 +0,0 @@
|
||||
package com.alibaba.excel.parameter; |
||||
|
||||
import java.io.InputStream; |
||||
|
||||
import com.alibaba.excel.support.ExcelTypeEnum; |
||||
|
||||
/** |
||||
* 方便使用废弃Excel解析时候入参,直接将ExcelTypeEnum、InputStream、customContent传入{@link com.alibaba.excel.ExcelReader}的构造器 |
||||
* |
||||
* @author jipengfei |
||||
*/ |
||||
@Deprecated |
||||
public class AnalysisParam { |
||||
|
||||
/** |
||||
* @see ExcelTypeEnum |
||||
*/ |
||||
private ExcelTypeEnum excelTypeEnum; |
||||
|
||||
/** |
||||
* file in |
||||
*/ |
||||
private InputStream in; |
||||
|
||||
/** |
||||
* user defined param to listener use |
||||
*/ |
||||
private Object customContent; |
||||
|
||||
public AnalysisParam(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent) { |
||||
this.in = in; |
||||
this.excelTypeEnum = excelTypeEnum; |
||||
this.customContent = customContent; |
||||
} |
||||
|
||||
public ExcelTypeEnum getExcelTypeEnum() { |
||||
return excelTypeEnum; |
||||
} |
||||
|
||||
public void setExcelTypeEnum(ExcelTypeEnum excelTypeEnum) { |
||||
this.excelTypeEnum = excelTypeEnum; |
||||
} |
||||
|
||||
public Object getCustomContent() { |
||||
return customContent; |
||||
} |
||||
|
||||
public void setCustomContent(Object customContent) { |
||||
this.customContent = customContent; |
||||
} |
||||
|
||||
public InputStream getIn() { |
||||
return in; |
||||
} |
||||
|
||||
public void setIn(InputStream in) { |
||||
this.in = in; |
||||
} |
||||
} |
@ -1,46 +0,0 @@
|
||||
package com.alibaba.excel.parameter; |
||||
|
||||
import java.io.OutputStream; |
||||
|
||||
import com.alibaba.excel.support.ExcelTypeEnum; |
||||
|
||||
/** |
||||
* 为方便使用废弃该入参。直接将outputStream,type传入{@link com.alibaba.excel.ExcelWriter}的构造器即可 |
||||
* |
||||
* @author jipengfei |
||||
*/ |
||||
@Deprecated |
||||
public class ExcelWriteParam { |
||||
|
||||
/** |
||||
* 文件输出流 |
||||
*/ |
||||
private OutputStream outputStream; |
||||
|
||||
/** |
||||
* Excel类型 |
||||
*/ |
||||
private ExcelTypeEnum type; |
||||
|
||||
public ExcelWriteParam(OutputStream outputStream, ExcelTypeEnum type) { |
||||
this.outputStream = outputStream; |
||||
this.type = type; |
||||
|
||||
} |
||||
|
||||
public OutputStream getOutputStream() { |
||||
return outputStream; |
||||
} |
||||
|
||||
public void setOutputStream(OutputStream outputStream) { |
||||
this.outputStream = outputStream; |
||||
} |
||||
|
||||
public ExcelTypeEnum getType() { |
||||
return type; |
||||
} |
||||
|
||||
public void setType(ExcelTypeEnum type) { |
||||
this.type = type; |
||||
} |
||||
} |
@ -1,14 +1,14 @@
|
||||
package com.alibaba.excel.analysis; |
||||
package com.alibaba.excel.read; |
||||
|
||||
import java.io.InputStream; |
||||
import java.util.LinkedHashMap; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
import com.alibaba.excel.context.AnalysisContext; |
||||
import com.alibaba.excel.event.AnalysisEventListener; |
||||
import com.alibaba.excel.event.AnalysisEventRegisterCenter; |
||||
import com.alibaba.excel.event.OneRowAnalysisFinishEvent; |
||||
import com.alibaba.excel.read.context.AnalysisContext; |
||||
import com.alibaba.excel.read.event.AnalysisEventListener; |
||||
import com.alibaba.excel.read.event.AnalysisEventRegisterCenter; |
||||
import com.alibaba.excel.read.event.OneRowAnalysisFinishEvent; |
||||
import com.alibaba.excel.metadata.Sheet; |
||||
import com.alibaba.excel.support.ExcelTypeEnum; |
||||
|
@ -1,9 +1,9 @@
|
||||
package com.alibaba.excel.analysis; |
||||
package com.alibaba.excel.read; |
||||
|
||||
import java.io.InputStream; |
||||
import java.util.List; |
||||
|
||||
import com.alibaba.excel.event.AnalysisEventListener; |
||||
import com.alibaba.excel.read.event.AnalysisEventListener; |
||||
import com.alibaba.excel.metadata.Sheet; |
||||
import com.alibaba.excel.support.ExcelTypeEnum; |
||||
|
@ -1,13 +1,13 @@
|
||||
package com.alibaba.excel.analysis; |
||||
package com.alibaba.excel.read; |
||||
|
||||
import java.io.InputStream; |
||||
import java.util.List; |
||||
|
||||
import com.alibaba.excel.context.AnalysisContext; |
||||
import com.alibaba.excel.context.AnalysisContextImpl; |
||||
import com.alibaba.excel.event.AnalysisEventListener; |
||||
import com.alibaba.excel.read.context.AnalysisContext; |
||||
import com.alibaba.excel.read.context.AnalysisContextImpl; |
||||
import com.alibaba.excel.read.event.AnalysisEventListener; |
||||
import com.alibaba.excel.metadata.Sheet; |
||||
import com.alibaba.excel.modelbuild.ModelBuildEventListener; |
||||
import com.alibaba.excel.read.modelbuild.ModelBuildEventListener; |
||||
import com.alibaba.excel.support.ExcelTypeEnum; |
||||
|
||||
/** |
@ -1,13 +1,12 @@
|
||||
package com.alibaba.excel.analysis; |
||||
package com.alibaba.excel.read; |
||||
|
||||
import java.io.IOException; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import com.alibaba.excel.analysis.BaseSaxAnalyser; |
||||
import com.alibaba.excel.context.AnalysisContext; |
||||
import com.alibaba.excel.event.OneRowAnalysisFinishEvent; |
||||
import com.alibaba.excel.exception.ExcelAnalysisException; |
||||
import com.alibaba.excel.read.context.AnalysisContext; |
||||
import com.alibaba.excel.read.event.OneRowAnalysisFinishEvent; |
||||
import com.alibaba.excel.read.exception.ExcelAnalysisException; |
||||
import com.alibaba.excel.metadata.Sheet; |
||||
|
||||
import org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder; |
@ -1,11 +1,11 @@
|
||||
package com.alibaba.excel.context; |
||||
package com.alibaba.excel.read.context; |
||||
|
||||
import java.io.InputStream; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import com.alibaba.excel.event.AnalysisEventListener; |
||||
import com.alibaba.excel.exception.ExcelAnalysisException; |
||||
import com.alibaba.excel.read.event.AnalysisEventListener; |
||||
import com.alibaba.excel.read.exception.ExcelAnalysisException; |
||||
import com.alibaba.excel.metadata.BaseRowModel; |
||||
import com.alibaba.excel.metadata.ExcelHeadProperty; |
||||
import com.alibaba.excel.metadata.Sheet; |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.event; |
||||
package com.alibaba.excel.read.event; |
||||
|
||||
|
||||
/** |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.event; |
||||
package com.alibaba.excel.read.event; |
||||
|
||||
/** |
||||
* @author jipengfei |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.exception; |
||||
package com.alibaba.excel.read.exception; |
||||
|
||||
/** |
||||
* Excel解析时候封装的异常 |
@ -1,10 +1,10 @@
|
||||
package com.alibaba.excel.modelbuild; |
||||
package com.alibaba.excel.read.modelbuild; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.alibaba.excel.context.AnalysisContext; |
||||
import com.alibaba.excel.event.AnalysisEventListener; |
||||
import com.alibaba.excel.exception.ExcelGenerateException; |
||||
import com.alibaba.excel.read.context.AnalysisContext; |
||||
import com.alibaba.excel.read.event.AnalysisEventListener; |
||||
import com.alibaba.excel.write.exception.ExcelGenerateException; |
||||
import com.alibaba.excel.metadata.ExcelColumnProperty; |
||||
import com.alibaba.excel.metadata.ExcelHeadProperty; |
||||
import com.alibaba.excel.util.TypeUtil; |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.analysis.v07; |
||||
package com.alibaba.excel.read.v07; |
||||
|
||||
import java.io.File; |
||||
import java.security.SecureRandom; |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.analysis.v07; |
||||
package com.alibaba.excel.read.v07; |
||||
|
||||
import java.io.IOException; |
||||
import java.io.InputStream; |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.constant; |
||||
package com.alibaba.excel.util; |
||||
|
||||
/** |
||||
* @author jipengfei |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.context; |
||||
package com.alibaba.excel.write.context; |
||||
|
||||
import java.io.OutputStream; |
||||
import java.util.List; |
@ -1,4 +1,4 @@
|
||||
package com.alibaba.excel.exception; |
||||
package com.alibaba.excel.write.exception; |
||||
|
||||
/** |
||||
* 生成Excel封装的异常 |
Loading…
Reference in new issue