保存进度!

This commit is contained in:
2025-08-11 12:11:23 +08:00
parent 2ec4f9186d
commit 565b575b6a
2 changed files with 39 additions and 7 deletions

View File

@@ -0,0 +1,30 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "App",
"request": "launch",
"mainClass": "com.cpic.xim.App",
"projectName": "east-utils"
},
{
"type": "java",
"name": "Debug",
"request": "launch",
"mainClass": "com.cpic.xim.App",
"projectName": "east-utils",
"args": ["-Xms512m", "-Xmx8g"]
}
]
}

View File

@@ -2,7 +2,7 @@
* @Author: Kane Wang <wangkane@qq.com> * @Author: Kane Wang <wangkane@qq.com>
* @Date: 2025-08-09 01:09:26 * @Date: 2025-08-09 01:09:26
* @LastEditors: Kane Wang * @LastEditors: Kane Wang
* @LastModified: 2025-08-09 12:07:23 * @LastModified: 2025-08-11 11:15:35
* @FilePath: src/main/java/com/cpic/xim/east/utils/DataFileConverter.java * @FilePath: src/main/java/com/cpic/xim/east/utils/DataFileConverter.java
* @Description: * @Description:
* *
@@ -19,7 +19,7 @@ import java.io.IOException;
import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@@ -35,9 +35,11 @@ public class DataFileConverter
* @throws FileNotFoundException * @throws FileNotFoundException
* @throws IOException * @throws IOException
*/ */
public static void convertEASTDataFileToXLSX( String eastDataFilePath, public static void convertEASTDataFileToXLSX(
String eastDataFilePath,
String xlsxFilePath, String xlsxFilePath,
String spliterString String spliterString,
String sheetName
) )
throws FileNotFoundException, throws FileNotFoundException,
IOException IOException
@@ -63,8 +65,8 @@ public class DataFileConverter
try try
{ {
workbook = new XSSFWorkbook(); workbook = new SXSSFWorkbook();
sheet = workbook.createSheet( "sheet1" ); sheet = workbook.createSheet( sheetName );
while ( (line = reader.readLine()) != null ) while ( (line = reader.readLine()) != null )
{ {