|
|
@ -18,7 +18,7 @@ import java.util.List; |
|
|
|
* This object can perform the following two functions. |
|
|
|
* This object can perform the following two functions. |
|
|
|
* <pre> |
|
|
|
* <pre> |
|
|
|
* 1. Create a new empty Excel workbook, write the data to the stream after the data is filled. |
|
|
|
* 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> |
|
|
|
* </pre> |
|
|
|
* @author jipengfei |
|
|
|
* @author jipengfei |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -40,7 +40,6 @@ public class ExcelWriter { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @param generateParam |
|
|
|
* @param generateParam |
|
|
|
* @since easyexcel 0.0.1 Use {@link new ExcelWrite(int, int, int) |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Deprecated |
|
|
|
@Deprecated |
|
|
|
public ExcelWriter(GenerateParam generateParam) { |
|
|
|
public ExcelWriter(GenerateParam generateParam) { |
|
|
@ -83,7 +82,7 @@ public class ExcelWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Write data(List<? extends BaseRowModel>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @return this current writer |
|
|
|
* @return this current writer |
|
|
@ -111,7 +110,7 @@ public class ExcelWriter { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
* Write data(List<List<String>>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @return this |
|
|
|
* @return this |
|
|
@ -122,7 +121,7 @@ public class ExcelWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Write data(List<List<String>>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @return this |
|
|
|
* @return this |
|
|
@ -133,7 +132,7 @@ public class ExcelWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Write data(List<? extends BaseRowModel>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param table Write to this table |
|
|
|
* @param table Write to this table |
|
|
@ -145,7 +144,7 @@ public class ExcelWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Write data(List<List<String>>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param table Write to this table |
|
|
|
* @param table Write to this table |
|
|
@ -170,7 +169,7 @@ public class ExcelWriter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Write data(List<List<Object>>) to a sheet |
|
|
|
* Write data to a sheet |
|
|
|
* @param data Data to be written |
|
|
|
* @param data Data to be written |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param sheet Write to this sheet |
|
|
|
* @param table Write to this table |
|
|
|
* @param table Write to this table |
|
|
|