类 JarResource
java.lang.Object
org.ssssssss.magicapi.core.resource.JarResource
- 所有已实现的接口:
Resource
Jar存储实现
- 作者:
- mxd
-
字段概要
字段 -
构造器概要
构造器构造器说明JarResource(JarFile jarFile, String entryName, List<JarEntry> entries, boolean inSpringBoot) JarResource(JarFile jarFile, String entryName, List<JarEntry> entries, JarResource parent, boolean inSpringBoot) -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.ssssssss.magicapi.core.resource.Resource
delete, export, getDirectory, mkdir, processExport, readAll, renameTo, write, write
-
字段详细资料
-
jarFile
-
entry
-
entries
-
entryName
-
inSpringBoot
private final boolean inSpringBoot -
rootName
-
parent
-
-
构造器详细资料
-
JarResource
-
JarResource
public JarResource(JarFile jarFile, String entryName, List<JarEntry> entries, JarResource parent, boolean inSpringBoot)
-
-
方法详细资料
-
separator
从接口复制的说明:Resource获取分隔符 -
readonly
public boolean readonly()从接口复制的说明:Resource判断是否是只读 -
read
public byte[] read()从接口复制的说明:Resource读取 -
isDirectory
public boolean isDirectory()从接口复制的说明:Resource判断是否是目录- 指定者:
isDirectory在接口中Resource- 返回:
- 返回资源是否是目录
-
exists
public boolean exists()从接口复制的说明:Resource判断是否存在 -
getEntry
-
getResource
从接口复制的说明:Resource获取子资源- 指定者:
getResource在接口中Resource- 参数:
name- 文件名称- 返回:
- 返回资源对象
-
name
从接口复制的说明:Resource获取资源名 -
parent
从接口复制的说明:Resource父级资源 -
dirs
从接口复制的说明:Resource目录 -
files
从接口复制的说明:Resource遍历文件 -
resources
从接口复制的说明:Resource获取子资源集合 -
getAbsolutePath
从接口复制的说明:Resource获取所在位置- 指定者:
getAbsolutePath在接口中Resource- 返回:
- 获取绝对路径
-
toString
-
getFilePath
从接口复制的说明:Resource获取文件路径- 指定者:
getFilePath在接口中Resource- 返回:
- 返回文件路径
-