v0.0.3
All checks were successful
CI/CD / build-deploy (pull_request) Successful in 40s

This commit is contained in:
Timi
2026-03-21 18:14:57 +08:00
parent 82a48bd1d2
commit 33177f5ded
4 changed files with 52 additions and 41 deletions

View File

@@ -1,5 +1,7 @@
package com.imyeyu.io;
import lombok.Getter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
@@ -16,8 +18,10 @@ import java.util.jar.JarFile;
* @author 夜雨
* @version 2021-12-01 17:39
*/
@Getter
public class JarReader extends JarFile {
/** jar 所有文件的数据流映射列表Map<路径, 数据流> */
private final Map<String, InputStream> files;
/**
@@ -76,12 +80,4 @@ public class JarReader extends JarFile {
return IO.toBytes(getInputStream(path));
}
/**
* 获取 jar 所有文件的数据流映射列表Map&lt;路径, 数据流&gt;
*
* @return 数据流映射列表
*/
public Map<String, InputStream> getFiles() {
return files;
}
}