Package com.axelor.common
Class PropertiesUtils
- java.lang.Object
-
- com.axelor.common.PropertiesUtils
-
public class PropertiesUtils extends Object
This class defines from static helper methods to deal withProperties
.
-
-
Constructor Summary
Constructors Constructor Description PropertiesUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
loadProperties(File file)
static Properties
loadProperties(URL resource)
static Properties
loadProperties(Path path)
static Map<String,String>
propertiesToMap(Properties properties)
-
-
-
Method Detail
-
loadProperties
public static Properties loadProperties(File file) throws IOException
- Throws:
IOException
-
loadProperties
public static Properties loadProperties(Path path) throws IOException
- Throws:
IOException
-
loadProperties
public static Properties loadProperties(URL resource) throws IOException
- Throws:
IOException
-
propertiesToMap
public static Map<String,String> propertiesToMap(Properties properties)
-
-