Class PropTool

java.lang.Object
com.xxl.tool.core.PropTool

public class PropTool extends Object
properties tool
Author:
xuxueli 2015-6-22 22:36:46
  • Constructor Details

    • PropTool

      public PropTool()
  • Method Details

    • loadProp

      public static Properties loadProp(String resourcePath)
      load properties from resource path
      Parameters:
      resourcePath -
      Returns:
    • loadFileProp

      public static Properties loadFileProp(String fileName)
      load properties from file path
      Parameters:
      fileName -
      Returns:
    • getString

      public static String getString(Properties prop, String key)
      load string value
      Parameters:
      key -
      Returns:
    • getString

      public static String getString(Properties prop, String key, String defaultValue)
      load string value with default value
      Parameters:
      prop -
      key -
      defaultValue -
      Returns:
    • getInt

      public static int getInt(Properties prop, String key)
      load int value
      Parameters:
      key -
      Returns:
    • getBoolean

      public static boolean getBoolean(Properties prop, String key)
      load int boolean
      Parameters:
      prop -
      key -
      Returns:
    • getLong

      public static long getLong(Properties prop, String key)
      load long value
      Parameters:
      prop -
      key -
      Returns:
    • getDouble

      public static double getDouble(Properties prop, String key)
      load double value
      Parameters:
      prop -
      key -
      Returns: