mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
feat(all): Modify Project Package Name cn.hutool->org.dromara.hutool
BREAKING CHANGE: 包名变更 Closes https://gitee.com/dromara/hutool/issues/I6SC4B
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi;
|
||||
package org.dromara.hutool.poi;
|
||||
|
||||
import cn.hutool.core.exceptions.DependencyException;
|
||||
import cn.hutool.core.classloader.ClassLoaderUtil;
|
||||
import org.dromara.hutool.core.exceptions.DependencyException;
|
||||
import org.dromara.hutool.core.classloader.ClassLoaderUtil;
|
||||
|
||||
/**
|
||||
* POI引入检查器
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.func.SerConsumer;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.func.SerConsumer;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Reader;
|
||||
4
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvConfig.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvConfig.java
Executable file → Normal file
4
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvConfig.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvConfig.java
Executable file → Normal file
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.LinkedHashMap;
|
||||
4
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvData.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvData.java
Executable file → Normal file
4
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvData.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvData.java
Executable file → Normal file
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Iterator;
|
||||
18
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvParser.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvParser.java
Executable file → Normal file
18
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvParser.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvParser.java
Executable file → Normal file
@@ -10,16 +10,16 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.collection.iter.ComputeIter;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.text.StrTrimer;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.collection.iter.ComputeIter;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.text.StrTrimer;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
10
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvReader.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvReader.java
Executable file → Normal file
10
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvReader.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvReader.java
Executable file → Normal file
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.func.SerConsumer;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.func.SerConsumer;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
8
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvRow.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvRow.java
Executable file → Normal file
8
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvRow.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvRow.java
Executable file → Normal file
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.bean.copier.CopyOptions;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.bean.copier.CopyOptions;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
2
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvUtil.java
Executable file → Normal file
2
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvUtil.java
Executable file → Normal file
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Reader;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
28
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvWriter.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvWriter.java
Executable file → Normal file
28
hutool-poi/src/main/java/cn/hutool/poi/csv/CsvWriter.java → hutool-poi/src/main/java/org/dromara/hutool/poi/csv/CsvWriter.java
Executable file → Normal file
@@ -10,21 +10,21 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.iter.ArrayIter;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.array.ArrayUtil;
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.collection.iter.ArrayIter;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.array.ArrayUtil;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.charset.Charset;
|
||||
@@ -17,4 +17,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.xssf.streaming.SXSSFSheet;
|
||||
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
||||
@@ -10,13 +10,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import cn.hutool.poi.excel.cell.CellUtil;
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.poi.excel.cell.CellLocation;
|
||||
import org.dromara.hutool.poi.excel.cell.CellUtil;
|
||||
import org.dromara.hutool.poi.excel.style.StyleUtil;
|
||||
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.array.ArrayUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.array.ArrayUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.apache.poi.ss.formula.ConditionalFormattingEvaluator;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.ExcelNumberFormat;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.extractor.ExcelExtractor;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.apache.poi.poifs.filesystem.FileMagic;
|
||||
|
||||
import java.io.File;
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.map.multi.ListValueMap;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.map.multi.ListValueMap;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
||||
import org.apache.poi.hssf.usermodel.HSSFPicture;
|
||||
import org.apache.poi.hssf.usermodel.HSSFPictureData;
|
||||
@@ -10,18 +10,18 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.func.SerBiConsumer;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import cn.hutool.poi.excel.cell.CellUtil;
|
||||
import cn.hutool.poi.excel.reader.BeanSheetReader;
|
||||
import cn.hutool.poi.excel.reader.ColumnSheetReader;
|
||||
import cn.hutool.poi.excel.reader.ListSheetReader;
|
||||
import cn.hutool.poi.excel.reader.MapSheetReader;
|
||||
import cn.hutool.poi.excel.reader.SheetReader;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.func.SerBiConsumer;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.CellUtil;
|
||||
import org.dromara.hutool.poi.excel.reader.BeanSheetReader;
|
||||
import org.dromara.hutool.poi.excel.reader.ColumnSheetReader;
|
||||
import org.dromara.hutool.poi.excel.reader.ListSheetReader;
|
||||
import org.dromara.hutool.poi.excel.reader.MapSheetReader;
|
||||
import org.dromara.hutool.poi.excel.reader.SheetReader;
|
||||
import org.apache.poi.ss.extractor.ExcelExtractor;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
24
hutool-poi/src/main/java/cn/hutool/poi/excel/ExcelUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/excel/ExcelUtil.java
Executable file → Normal file
24
hutool-poi/src/main/java/cn/hutool/poi/excel/ExcelUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/excel/ExcelUtil.java
Executable file → Normal file
@@ -10,19 +10,19 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.exceptions.DependencyException;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.core.regex.ReUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.PoiChecker;
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import cn.hutool.poi.excel.sax.ExcelSaxReader;
|
||||
import cn.hutool.poi.excel.sax.ExcelSaxUtil;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.core.exceptions.DependencyException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.regex.ReUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.PoiChecker;
|
||||
import org.dromara.hutool.poi.excel.cell.CellLocation;
|
||||
import org.dromara.hutool.poi.excel.sax.ExcelSaxReader;
|
||||
import org.dromara.hutool.poi.excel.sax.ExcelSaxUtil;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
@@ -10,28 +10,28 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.comparator.IndexedComparator;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.id.IdUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.map.SafeConcurrentHashMap;
|
||||
import cn.hutool.core.map.TableMap;
|
||||
import cn.hutool.core.map.multi.RowKeyTable;
|
||||
import cn.hutool.core.map.multi.Table;
|
||||
import cn.hutool.core.net.url.URLEncoder;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import cn.hutool.poi.excel.cell.CellUtil;
|
||||
import cn.hutool.poi.excel.style.Align;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.comparator.IndexedComparator;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.id.IdUtil;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.map.SafeConcurrentHashMap;
|
||||
import org.dromara.hutool.core.map.TableMap;
|
||||
import org.dromara.hutool.core.map.multi.RowKeyTable;
|
||||
import org.dromara.hutool.core.map.multi.Table;
|
||||
import org.dromara.hutool.core.net.url.URLEncoder;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.CellLocation;
|
||||
import org.dromara.hutool.poi.excel.cell.CellUtil;
|
||||
import org.dromara.hutool.poi.excel.style.Align;
|
||||
import org.apache.poi.common.usermodel.Hyperlink;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
@@ -1209,7 +1209,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
/**
|
||||
* 对数据行整行加自定义样式 仅对数据单元格设置 write后调用
|
||||
* <p>
|
||||
* {@link cn.hutool.poi.excel.ExcelWriter#setRowStyle(int, org.apache.poi.ss.usermodel.CellStyle)}
|
||||
* {@link ExcelWriter#setRowStyle(int, org.apache.poi.ss.usermodel.CellStyle)}
|
||||
* 这个方法加的样式会使整行没有数据的单元格也有样式
|
||||
* 特别是加背景色时很不美观 且有数据的单元格样式会被StyleSet中的样式覆盖掉
|
||||
*
|
||||
@@ -1245,7 +1245,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
|
||||
/**
|
||||
* 设置整个列的样式 仅对数据单元格设置 write后调用
|
||||
* <p>
|
||||
* {@link cn.hutool.poi.excel.ExcelWriter#setColumnStyle(int, org.apache.poi.ss.usermodel.CellStyle)}
|
||||
* {@link ExcelWriter#setColumnStyle(int, org.apache.poi.ss.usermodel.CellStyle)}
|
||||
* 这个方法加的样式会使整列没有数据的单元格也有样式
|
||||
* 特别是加背景色时很不美观 且有数据的单元格样式会被StyleSet中的样式覆盖掉
|
||||
*
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import cn.hutool.poi.excel.cell.CellUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.CellUtil;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import org.dromara.hutool.poi.excel.style.StyleUtil;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.BorderStyle;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
@@ -11,13 +11,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
@@ -10,16 +10,16 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.ExcelUtil;
|
||||
import cn.hutool.poi.excel.StyleSet;
|
||||
import cn.hutool.poi.excel.cell.editors.TrimEditor;
|
||||
import cn.hutool.poi.excel.cell.setters.CellSetterFactory;
|
||||
import cn.hutool.poi.excel.cell.values.ErrorCellValue;
|
||||
import cn.hutool.poi.excel.cell.values.NumericCellValue;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.ExcelUtil;
|
||||
import org.dromara.hutool.poi.excel.StyleSet;
|
||||
import org.dromara.hutool.poi.excel.cell.editors.TrimEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.setters.CellSetterFactory;
|
||||
import org.dromara.hutool.poi.excel.cell.values.ErrorCellValue;
|
||||
import org.dromara.hutool.poi.excel.cell.values.NumericCellValue;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.ss.util.RegionUtil;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
/**
|
||||
* 抽象的单元格值接口,用于判断不同类型的单元格值
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
|
||||
import org.apache.poi.ss.formula.FormulaParseException;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.editors;
|
||||
package org.dromara.hutool.poi.excel.cell.editors;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
|
||||
/**
|
||||
* POI中NUMRIC类型的值默认返回的是Double类型,此编辑器用于转换其为int型
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.editors;
|
||||
package org.dromara.hutool.poi.excel.cell.editors;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
|
||||
/**
|
||||
* 去除String类型的单元格值两边的空格
|
||||
@@ -15,4 +15,4 @@
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
package cn.hutool.poi.excel.cell.editors;
|
||||
package org.dromara.hutool.poi.excel.cell.editors;
|
||||
@@ -15,4 +15,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel.cell;
|
||||
package org.dromara.hutool.poi.excel.cell;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
/**
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
import java.util.Calendar;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||
import org.apache.poi.ss.usermodel.RichTextString;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
/**
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.core.regex.ReUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.regex.ReUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
/**
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.core.math.NumberUtil;
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.core.math.NumberUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
/**
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.RichTextString;
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
import java.time.Instant;
|
||||
@@ -15,4 +15,4 @@
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
package cn.hutool.poi.excel.cell.setters;
|
||||
package org.dromara.hutool.poi.excel.cell.setters;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.values;
|
||||
package org.dromara.hutool.poi.excel.cell.values;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.cell.CellValue;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellValue;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.FormulaError;
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.values;
|
||||
package org.dromara.hutool.poi.excel.cell.values;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellSetter;
|
||||
import cn.hutool.poi.excel.cell.CellValue;
|
||||
import org.dromara.hutool.poi.excel.cell.CellSetter;
|
||||
import org.dromara.hutool.poi.excel.cell.CellValue;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
|
||||
/**
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.cell.values;
|
||||
package org.dromara.hutool.poi.excel.cell.values;
|
||||
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import cn.hutool.poi.excel.ExcelDateUtil;
|
||||
import cn.hutool.poi.excel.cell.CellValue;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.poi.excel.ExcelDateUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellValue;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.util.NumberToTextConverter;
|
||||
@@ -15,4 +15,4 @@
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
package cn.hutool.poi.excel.cell.values;
|
||||
package org.dromara.hutool.poi.excel.cell.values;
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
@@ -10,13 +10,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.ExcelUtil;
|
||||
import cn.hutool.poi.excel.RowUtil;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.ExcelUtil;
|
||||
import org.dromara.hutool.poi.excel.RowUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.bean.copier.CopyOptions;
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.bean.copier.CopyOptions;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.CellUtil;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.iter.IterUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.collection.iter.IterUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel.reader;
|
||||
package org.dromara.hutool.poi.excel.reader;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import org.xml.sax.Attributes;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
/**
|
||||
* 单元格数据类型枚举
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
/**
|
||||
* 标签名枚举
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.hssf.eventusermodel.EventWorkbookBuilder.SheetRecordCollectingListener;
|
||||
import org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener;
|
||||
import org.apache.poi.hssf.eventusermodel.HSSFEventFactory;
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.reflect.MethodUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.reflect.MethodUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.exceptions.OpenXML4JException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
@@ -10,18 +10,18 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.exceptions.DependencyException;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.ExcelDateUtil;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.date.DateTime;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.exceptions.DependencyException;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.util.CharUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.ExcelDateUtil;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.hssf.eventusermodel.FormatTrackingHSSFListener;
|
||||
import org.apache.poi.hssf.record.CellValueRecordInterface;
|
||||
import org.apache.poi.ss.usermodel.DataFormatter;
|
||||
@@ -10,12 +10,12 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.cell.values.FormulaCellValue;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.values.FormulaCellValue;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.apache.poi.ss.usermodel.BuiltinFormats;
|
||||
import org.apache.poi.xssf.model.SharedStrings;
|
||||
import org.apache.poi.xssf.model.StylesTable;
|
||||
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.xssf.eventusermodel.XSSFReader;
|
||||
import org.xml.sax.Attributes;
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax.handler;
|
||||
package org.dromara.hutool.poi.excel.sax.handler;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
@@ -10,13 +10,13 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax.handler;
|
||||
package org.dromara.hutool.poi.excel.sax.handler;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.iter.IterUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.collection.iter.IterUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax.handler;
|
||||
package org.dromara.hutool.poi.excel.sax.handler;
|
||||
|
||||
import cn.hutool.core.collection.iter.IterUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.collection.iter.IterUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.sax.handler;
|
||||
package org.dromara.hutool.poi.excel.sax.handler;
|
||||
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel.sax.handler;
|
||||
package org.dromara.hutool.poi.excel.sax.handler;
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel.sax;
|
||||
package org.dromara.hutool.poi.excel.sax;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.style;
|
||||
package org.dromara.hutool.poi.excel.style;
|
||||
|
||||
/**
|
||||
* 对齐方式枚举
|
||||
@@ -10,9 +10,9 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.excel.style;
|
||||
package org.dromara.hutool.poi.excel.style;
|
||||
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.apache.poi.ss.usermodel.BorderStyle;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.excel.style;
|
||||
package org.dromara.hutool.poi.excel.style;
|
||||
@@ -10,10 +10,10 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.exceptions;
|
||||
package org.dromara.hutool.poi.exceptions;
|
||||
|
||||
import cn.hutool.core.exceptions.ExceptionUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.exceptions.ExceptionUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
|
||||
/**
|
||||
* POI异常
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.exceptions;
|
||||
package org.dromara.hutool.poi.exceptions;
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.ofd;
|
||||
package org.dromara.hutool.poi.ofd;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.file.PathUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.PathUtil;
|
||||
import org.ofdrw.font.Font;
|
||||
import org.ofdrw.layout.OFDDoc;
|
||||
import org.ofdrw.layout.edit.Annotation;
|
||||
@@ -15,4 +15,4 @@
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
package cn.hutool.poi.ofd;
|
||||
package org.dromara.hutool.poi.ofd;
|
||||
@@ -18,4 +18,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi;
|
||||
package org.dromara.hutool.poi;
|
||||
@@ -10,11 +10,11 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.openxml4j.opc.OPCPackage;
|
||||
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
|
||||
import org.apache.poi.xwpf.usermodel.Document;
|
||||
|
||||
14
hutool-poi/src/main/java/cn/hutool/poi/word/TableUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/word/TableUtil.java
Executable file → Normal file
14
hutool-poi/src/main/java/cn/hutool/poi/word/TableUtil.java → hutool-poi/src/main/java/org/dromara/hutool/poi/word/TableUtil.java
Executable file → Normal file
@@ -10,14 +10,14 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.collection.iter.IterUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.collection.iter.IterUtil;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.apache.poi.xwpf.usermodel.XWPFDocument;
|
||||
import org.apache.poi.xwpf.usermodel.XWPFTable;
|
||||
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
|
||||
@@ -10,15 +10,15 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.file.FileNameUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.array.ArrayUtil;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IORuntimeException;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileNameUtil;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.array.ArrayUtil;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
|
||||
import org.apache.poi.util.Units;
|
||||
import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
|
||||
@@ -10,7 +10,7 @@
|
||||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
* @author looly
|
||||
*
|
||||
*/
|
||||
package cn.hutool.poi.word;
|
||||
package org.dromara.hutool.poi.word;
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.annotation.Alias;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.annotation.Alias;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.resource.ResourceUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import lombok.Data;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
12
hutool-poi/src/test/java/cn/hutool/poi/csv/CsvUtilTest.java → hutool-poi/src/test/java/org/dromara/hutool/poi/csv/CsvUtilTest.java
Executable file → Normal file
12
hutool-poi/src/test/java/cn/hutool/poi/csv/CsvUtilTest.java → hutool-poi/src/test/java/org/dromara/hutool/poi/csv/CsvUtilTest.java
Executable file → Normal file
@@ -1,10 +1,10 @@
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.bean.BeanUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
@@ -1,8 +1,8 @@
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package cn.hutool.poi.csv;
|
||||
package org.dromara.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.func.SerConsumer;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.func.SerConsumer;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.style.StyleUtil;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.apache.poi.ss.usermodel.FillPatternType;
|
||||
import org.apache.poi.ss.usermodel.Font;
|
||||
@@ -155,21 +155,21 @@ public class BigExcelWriteTest {
|
||||
@Test
|
||||
@Disabled
|
||||
public void writeBeanTest() {
|
||||
final cn.hutool.poi.excel.TestBean bean1 = new cn.hutool.poi.excel.TestBean();
|
||||
final TestBean bean1 = new TestBean();
|
||||
bean1.setName("张三");
|
||||
bean1.setAge(22);
|
||||
bean1.setPass(true);
|
||||
bean1.setScore(66.30);
|
||||
bean1.setExamDate(DateUtil.now());
|
||||
|
||||
final cn.hutool.poi.excel.TestBean bean2 = new cn.hutool.poi.excel.TestBean();
|
||||
final TestBean bean2 = new TestBean();
|
||||
bean2.setName("李四");
|
||||
bean2.setAge(28);
|
||||
bean2.setPass(false);
|
||||
bean2.setScore(38.50);
|
||||
bean2.setExamDate(DateUtil.now());
|
||||
|
||||
final List<cn.hutool.poi.excel.TestBean> rows = ListUtil.of(bean1, bean2);
|
||||
final List<TestBean> rows = ListUtil.of(bean1, bean2);
|
||||
// 通过工具类创建writer
|
||||
final String file = "e:/bigWriteBeanTest.xlsx";
|
||||
FileUtil.del(FileUtil.file(file));
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellEditor;
|
||||
import org.dromara.hutool.poi.excel.cell.CellEditor;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.apache.poi.ss.usermodel.BuiltinFormats;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.lang.func.SerBiConsumer;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.core.io.resource.ResourceUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.lang.func.SerBiConsumer;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import lombok.Data;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
@@ -1,15 +1,15 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.text.StrUtil;
|
||||
import cn.hutool.poi.excel.cell.values.FormulaCellValue;
|
||||
import cn.hutool.poi.excel.sax.Excel03SaxReader;
|
||||
import cn.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import cn.hutool.poi.exceptions.POIException;
|
||||
import org.dromara.hutool.core.collection.CollUtil;
|
||||
import org.dromara.hutool.core.convert.Convert;
|
||||
import org.dromara.hutool.core.io.IoUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.values.FormulaCellValue;
|
||||
import org.dromara.hutool.poi.excel.sax.Excel03SaxReader;
|
||||
import org.dromara.hutool.poi.excel.sax.handler.RowHandler;
|
||||
import org.dromara.hutool.poi.exceptions.POIException;
|
||||
import org.apache.poi.ss.usermodel.CellStyle;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import org.dromara.hutool.poi.excel.cell.CellLocation;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package cn.hutool.poi.excel;
|
||||
package org.dromara.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.collection.ListUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.io.file.FileUtil;
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.lang.id.IdUtil;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.hutool.poi.excel.cell.setters.EscapeStrCellSetter;
|
||||
import cn.hutool.poi.excel.style.StyleUtil;
|
||||
import org.dromara.hutool.core.collection.ListUtil;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.io.file.FileUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.lang.id.IdUtil;
|
||||
import org.dromara.hutool.core.map.MapUtil;
|
||||
import org.dromara.hutool.core.util.CharsetUtil;
|
||||
import org.dromara.hutool.core.util.ObjUtil;
|
||||
import org.dromara.hutool.poi.excel.cell.setters.EscapeStrCellSetter;
|
||||
import org.dromara.hutool.poi.excel.style.StyleUtil;
|
||||
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddressList;
|
||||
@@ -428,21 +428,21 @@ public class ExcelWriteTest {
|
||||
@Test
|
||||
@Disabled
|
||||
public void writeBeanTest() {
|
||||
final cn.hutool.poi.excel.TestBean bean1 = new cn.hutool.poi.excel.TestBean();
|
||||
final TestBean bean1 = new TestBean();
|
||||
bean1.setName("张三");
|
||||
bean1.setAge(22);
|
||||
bean1.setPass(true);
|
||||
bean1.setScore(66.30);
|
||||
bean1.setExamDate(DateUtil.now());
|
||||
|
||||
final cn.hutool.poi.excel.TestBean bean2 = new cn.hutool.poi.excel.TestBean();
|
||||
final TestBean bean2 = new TestBean();
|
||||
bean2.setName("李四");
|
||||
bean2.setAge(28);
|
||||
bean2.setPass(false);
|
||||
bean2.setScore(38.50);
|
||||
bean2.setExamDate(DateUtil.now());
|
||||
|
||||
final List<cn.hutool.poi.excel.TestBean> rows = ListUtil.of(bean1, bean2);
|
||||
final List<TestBean> rows = ListUtil.of(bean1, bean2);
|
||||
// 通过工具类创建writer
|
||||
final String file = "e:/writeBeanTest.xlsx";
|
||||
FileUtil.del(FileUtil.file(file));
|
||||
@@ -464,17 +464,17 @@ public class ExcelWriteTest {
|
||||
@Test
|
||||
@Disabled
|
||||
public void writeBeanTest2() {
|
||||
final cn.hutool.poi.excel.OrderExcel order1 = new cn.hutool.poi.excel.OrderExcel();
|
||||
final OrderExcel order1 = new OrderExcel();
|
||||
order1.setId("1");
|
||||
order1.setNum("123");
|
||||
order1.setBody("body1");
|
||||
|
||||
final cn.hutool.poi.excel.OrderExcel order2 = new cn.hutool.poi.excel.OrderExcel();
|
||||
final OrderExcel order2 = new OrderExcel();
|
||||
order1.setId("2");
|
||||
order1.setNum("456");
|
||||
order1.setBody("body2");
|
||||
|
||||
final List<cn.hutool.poi.excel.OrderExcel> rows = ListUtil.of(order1, order2);
|
||||
final List<OrderExcel> rows = ListUtil.of(order1, order2);
|
||||
// 通过工具类创建writer
|
||||
final String file = "f:/test/writeBeanTest2.xlsx";
|
||||
FileUtil.del(FileUtil.file(file));
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user