public final class XmlResources extends AbstractResources
map| 构造器和说明 |
|---|
XmlResources() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
Map<Object,Object> |
getConfig() |
void |
load(InputStream is)
加载资源
|
void |
loadByClassPath(String path)
从class中读取资源
|
void |
loadByFile(File file)
从文件中读取资源
|
void |
loadByFilePath(String path)
从指定路径中读取资源
|
getBooleanValue, getCharValue, getDoubleValue, getFloatValue, getIntegerValue, getResources, getValue, writeLocalPropertiesconvertpublic void loadByClassPath(String path) throws IOException
path - 包路径(/区分路径层级关系)IOException - IOExceptionpublic void loadByFile(File file) throws IOException
file - 文件IOException - IOExceptionpublic void loadByFilePath(String path) throws IOException
path - 路径IOException - IOExceptionpublic void load(InputStream is) throws IOException
ReadResourcesis - 输入流IOException - 异常public void clear()
clear 在接口中 Configclear 在类中 AbstractResourcesCopyright © 2018. All rights reserved.