类 Resource
java.lang.Object
com.gdxsoft.easyweb.h5Storage.Resource
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明完整的物理路径读取资源所用的class全名getGroup()getHash()getId()intgetIndex()资源的顺序号getPath()相对路径org.json.JSONObjectboolean是否是资源文件voidsetAllPath(String allPath) 完整的物理路径voidsetClassLoader(String classLoader) 读取资源所用的class全名voidsetContent(String content) voidvoidvoidvoidsetIndex(int index) voidsetJarResource(boolean jarResource) void相对路径voidsetSource(org.json.JSONObject source)
-
构造器详细资料
-
Resource
public Resource()
-
-
方法详细资料
-
getId
-
setId
-
getHash
-
setHash
-
getContent
-
setContent
-
getGroup
-
setGroup
-
getSource
public org.json.JSONObject getSource() -
setSource
public void setSource(org.json.JSONObject source) -
getAllPath
完整的物理路径- 返回:
-
setAllPath
完整的物理路径- 参数:
allPath-
-
getPath
相对路径- 返回:
-
setPath
相对路径- 参数:
path-
-
getIndex
public int getIndex()资源的顺序号- 返回:
-
setIndex
public void setIndex(int index) -
isJarResource
public boolean isJarResource()是否是资源文件- 返回:
-
setJarResource
public void setJarResource(boolean jarResource) -
getClassLoader
读取资源所用的class全名- 返回:
- the classLoader
-
setClassLoader
读取资源所用的class全名- 参数:
classLoader- the classLoader to set
-