程序包 com.sh.util

类 PropertiesUtil

java.lang.Object
com.sh.util.PropertiesUtil

public class PropertiesUtil extends Object
Description: 属性对象工具类 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • PropertiesUtil

      public PropertiesUtil()
  • 方法详细资料

    • getValue

      public static String getValue(Properties p, String key)
      获取属性值
      参数:
      p - Properties
      key - String
      返回:
      String
    • convertISOTo

      public static String convertISOTo(String str, String charset)
    • getSystemValue

      public static String getSystemValue(String key)
      获取系统属性
      参数:
      key - String
      返回:
      String
    • getSystemValue

      public static String getSystemValue(String key, String defaultValue)
      获取系统属性
      参数:
      key - String
      defaultValue - 默认值
      返回:
      String
    • getSystemIntValue

      public static int getSystemIntValue(String key, String defaultValue)
      获取系统整形属性
      参数:
      key - String
      defaultValue - String
      返回:
      int
    • getSystemBooleanValue

      public static boolean getSystemBooleanValue(String key, String defaultValue)
      获取系统BOOLEAN属性
      参数:
      key - String
      defaultValue - String
      返回:
      boolean
    • getSystemExValue

      public static String getSystemExValue(String key)
      获取系统扩展属性
      参数:
      key - String
      返回:
      String
    • getSystemExValue

      public static String getSystemExValue(String key, String defaultValue)
      获取系统扩展属性
      参数:
      key - String
      defaultValue - 默认值
      返回:
      String
    • getSystemExIntValue

      public static int getSystemExIntValue(String key, String defaultValue)
      获取系统扩展整形属性
      参数:
      key - String
      defaultValue - 默认值
      返回:
      int
    • getSystemExBooleanValue

      public static boolean getSystemExBooleanValue(String key, String defaultValue)
      获取BOOLEAN类型
      参数:
      key - String
      defaultValue - String
      返回:
      boolean
    • checkAndRestoreEncryValue

      public static void checkAndRestoreEncryValue(Properties p)
    • isEncodeKeyValue

      public static boolean isEncodeKeyValue(String v)
    • encodeValue

      public static String encodeValue(String content)
      属性文件加密
      参数:
      content -
      返回:
    • decodeValue

      public static String decodeValue(String content)
      属性文件解密
      参数:
      content -
      返回: