public class ResDir extends VirtualContainer
| 限定符和类型 | 方法和说明 |
|---|---|
ResDir |
add(Path res)
向目录中加入资源
加入的资源将会被复制到指定目录,与原有资源无关
|
Path |
get(String name)
获取容器中的资源
|
addRaw, clean, close, exit, flush, flushContainerByName, flushFileByName, getAbsLoc, getContainer, getContainerName, getContainerPath, getFile, getObj, getParent, getSysAbsPath, obtainContainer, putFile, putObj, setParentpublic ResDir(Path fullDir) throws IllegalArgumentException
public ResDir add(Path res) throws IOException
加入的资源将会被复制到指定目录,与原有资源无关
res - 资源IOException - 文件复制过程中发生的异常public Path get(String name) throws FileNotFoundException
name - 资源名称(包含后缀)FileNotFoundException - 文件不存在Copyright © 2022. All rights reserved.