Browse Source

升级新版本,修复bug,提供编辑工具,提升模型转换性能

developing
jipengfei.jpf 6 years ago
parent
commit
c90f24d28d
  1. 16
      src/main/java/com/alibaba/excel/ExcelWriter.java
  2. 4
      src/main/java/com/alibaba/excel/util/StringUtils.java
  3. 7
      src/main/java/com/alibaba/excel/write/ExcelBuilder.java

16
src/main/java/com/alibaba/excel/ExcelWriter.java

@ -17,7 +17,7 @@ import java.util.List;
* This object can perform the following two functions.
* <pre>
* 1. Create a new empty Excel workbook, write the data to the stream after the data is filled.
* 2. Edit existing Excel, write the original Excel file, or write it to other places.{@link ExcelWriter(InputStream , OutputStream , ExcelTypeEnum , boolean )}
* 2. Edit existing Excel, write the original Excel file, or write it to other places.
* </pre>
* @author jipengfei
*/
@ -39,7 +39,7 @@ public class ExcelWriter {
/**
* @param generateParam
* @since easyexcel 0.0.1 Use {@link new ExcelWrite(int, int, int)
* @since easyexcel 0.0.1
*/
@Deprecated
public ExcelWriter(GenerateParam generateParam) {
@ -69,7 +69,7 @@ public class ExcelWriter {
}
/**
* Write data(List<? extends BaseRowModel>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @return this current writer
@ -97,7 +97,7 @@ public class ExcelWriter {
/**
*
* Write data(List<List<String>>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @return this
@ -108,7 +108,7 @@ public class ExcelWriter {
}
/**
* Write data(List<List<String>>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @return this
@ -119,7 +119,7 @@ public class ExcelWriter {
}
/**
* Write data(List<? extends BaseRowModel>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @param table Write to this table
@ -131,7 +131,7 @@ public class ExcelWriter {
}
/**
* Write data(List<List<String>>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @param table Write to this table
@ -156,7 +156,7 @@ public class ExcelWriter {
}
/**
* Write data(List<List<Object>>) to a sheet
* Write data to a sheet
* @param data Data to be written
* @param sheet Write to this sheet
* @param table Write to this table

4
src/main/java/com/alibaba/excel/util/StringUtils.java

@ -549,7 +549,7 @@ public abstract class StringUtils {
/**
* Extract the filename extension from the given Java resource path,
* e.g. "mypath/myfile.txt" -> "txt".
*
* @param path the file path (may be {@code null})
* @return the extracted filename extension, or {@code null} if none
*/
@ -573,7 +573,7 @@ public abstract class StringUtils {
/**
* Strip the filename extension from the given Java resource path,
* e.g. "mypath/myfile.txt" -> "mypath/myfile".
*
* @param path the file path
* @return the path with stripped filename extension
*/

7
src/main/java/com/alibaba/excel/write/ExcelBuilder.java

@ -10,11 +10,10 @@ import java.util.List;
*/
public interface ExcelBuilder {
/**
* workBook increase data
*
* @param data List<List<String>> or List<? extends BaseRowModel>
* @param data java basic type or java model extend BaseModel
* @param startRow Start row number
*/
void addContent(List data, int startRow);
@ -22,7 +21,7 @@ public interface ExcelBuilder {
/**
* WorkBook increase data
*
* @param data List<List<String>> or List<? extends BaseRowModel>
* @param data java basic type or java model extend BaseModel
* @param sheetParam Write the sheet
*/
void addContent(List data, Sheet sheetParam);
@ -30,7 +29,7 @@ public interface ExcelBuilder {
/**
* WorkBook increase data
*
* @param data List<List<String>> or List<? extends BaseRowModel>
* @param data java basic type or java model extend BaseModel
* @param sheetParam Write the sheet
* @param table Write the table
*/

Loading…
Cancel
Save