public class Resource extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
fileName
文件名
|
protected boolean |
inJar
是否位于jar中
|
static String |
PACKAGE_SEPARATOR |
protected String |
root
所在路径
|
protected ResourceType |
type
资源类型
|
| 构造器和说明 |
|---|
Resource() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getFileName() |
String |
getRoot() |
ResourceType |
getType() |
boolean |
isInJar() |
long |
lastModified()
获取文件最后修改时间
|
void |
setFileName(String fileName) |
void |
setInJar(boolean inJar) |
void |
setRoot(String root) |
void |
setType(ResourceType type) |
String |
toString() |
protected boolean inJar
protected String root
protected String fileName
protected ResourceType type
public boolean isInJar()
public void setInJar(boolean inJar)
public String getRoot()
public void setRoot(String root)
public String getFileName()
public void setFileName(String fileName)
public ResourceType getType()
public void setType(ResourceType type)
public long lastModified()
throws IOException
IOException - IOExceptionCopyright © 2020. All Rights Reserved.