程序包 com.sh.util
类 PropertiesUtil
java.lang.Object
com.sh.util.PropertiesUtil
Description: 属性对象工具类
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidstatic StringconvertISOTo(String str, String charset) static StringdecodeValue(String content) 属性文件解密static StringencodeValue(String content) 属性文件加密static booleangetSystemBooleanValue(String key, String defaultValue) 获取系统BOOLEAN属性static booleangetSystemExBooleanValue(String key, String defaultValue) 获取BOOLEAN类型static intgetSystemExIntValue(String key, String defaultValue) 获取系统扩展整形属性static StringgetSystemExValue(String key) 获取系统扩展属性static StringgetSystemExValue(String key, String defaultValue) 获取系统扩展属性static intgetSystemIntValue(String key, String defaultValue) 获取系统整形属性static StringgetSystemValue(String key) 获取系统属性static StringgetSystemValue(String key, String defaultValue) 获取系统属性static StringgetValue(Properties p, String key) 获取属性值static boolean
-
构造器详细资料
-
PropertiesUtil
public PropertiesUtil()
-
-
方法详细资料
-
getValue
获取属性值- 参数:
p- Propertieskey- String- 返回:
- String
-
convertISOTo
-
getSystemValue
获取系统属性- 参数:
key- String- 返回:
- String
-
getSystemValue
获取系统属性- 参数:
key- StringdefaultValue- 默认值- 返回:
- String
-
getSystemIntValue
获取系统整形属性- 参数:
key- StringdefaultValue- String- 返回:
- int
-
getSystemBooleanValue
获取系统BOOLEAN属性- 参数:
key- StringdefaultValue- String- 返回:
- boolean
-
getSystemExValue
获取系统扩展属性- 参数:
key- String- 返回:
- String
-
getSystemExValue
获取系统扩展属性- 参数:
key- StringdefaultValue- 默认值- 返回:
- String
-
getSystemExIntValue
获取系统扩展整形属性- 参数:
key- StringdefaultValue- 默认值- 返回:
- int
-
getSystemExBooleanValue
获取BOOLEAN类型- 参数:
key- StringdefaultValue- String- 返回:
- boolean
-
checkAndRestoreEncryValue
-
isEncodeKeyValue
-
encodeValue
属性文件加密- 参数:
content-- 返回:
-
decodeValue
属性文件解密- 参数:
content-- 返回:
-