This commit is contained in:
@@ -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<路径, 数据流>
|
||||
*
|
||||
* @return 数据流映射列表
|
||||
*/
|
||||
public Map<String, InputStream> getFiles() {
|
||||
return files;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user