| 构造器和说明 |
|---|
JarResource(JarFile jarFile,
String entryName,
List<JarEntry> entries,
boolean inSpringBoot) |
JarResource(JarFile jarFile,
String entryName,
List<JarEntry> entries,
JarResource parent,
boolean inSpringBoot) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Resource> |
dirs()
目录
|
boolean |
exists()
判断是否存在
|
List<Resource> |
files(String suffix)
遍历文件
|
String |
getAbsolutePath()
获取所在位置
|
protected ZipEntry |
getEntry(String name) |
String |
getFilePath()
获取文件路径
|
Resource |
getResource(String name)
获取子资源
|
boolean |
isDirectory()
判断是否是目录
|
String |
name()
获取资源名
|
Resource |
parent()
父级资源
|
byte[] |
read()
读取
|
boolean |
readonly()
判断是否是只读
|
List<Resource> |
resources()
获取子资源集合
|
String |
separator()
获取分隔符
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, export, getDirectory, mkdir, processExport, readAll, renameTo, write, writepublic JarResource(JarFile jarFile, String entryName, List<JarEntry> entries, boolean inSpringBoot)
public JarResource(JarFile jarFile, String entryName, List<JarEntry> entries, JarResource parent, boolean inSpringBoot)
public boolean readonly()
Resourcepublic boolean isDirectory()
ResourceisDirectory 在接口中 Resourcepublic Resource getResource(String name)
ResourcegetResource 在接口中 Resourcename - 文件名称public String getAbsolutePath()
ResourcegetAbsolutePath 在接口中 Resourcepublic String getFilePath()
ResourcegetFilePath 在接口中 ResourceCopyright © 2020–2021. All rights reserved.