public class JSONConfigurationProvider extends AbstractConfigurationProvider
| Constructor and Description | 
|---|
JSONConfigurationProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected IConfigFileParser | 
buildConfigFileParser(URL cfgFileName)
构建配置文件分析器对象 
 | 
List<String> | 
getList(String category,
       String key)
获取指定分类中键的对应的文字值列表,其中匹配以key开头的键串 
 | 
String | 
getSupportFileExtName()
获取当前配置文件解析器支持的文件扩展名称 
 | 
contains, contains, getArray, getArray, getArray, getArray, getBoolean, getBoolean, getBoolean, getCategoryNames, getCfgFileName, getClassImpl, getClassImpl, getClassImpl, getConfigFileParser, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInt, getList, getLong, getLong, getLong, getMap, getMap, getString, getString, getString, load, reload, toMap, toMapprotected IConfigFileParser buildConfigFileParser(URL cfgFileName) throws Exception
AbstractConfigurationProviderbuildConfigFileParser in class AbstractConfigurationProvidercfgFileName - 配置文件URL路径Exception - 可能产生的任何异常public String getSupportFileExtName()
IConfigurationProviderpublic List<String> getList(String category, String key)
IConfigurationProvidergetList in interface IConfigurationProvidergetList in class AbstractConfigurationProvidercategory - 分类名称key - 属性键Copyright © 2022. All rights reserved.