public class PropertiesUtil extends Object
| Constructor and Description |
|---|
PropertiesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanProp(Properties properties,
String name) |
static boolean |
getBooleanProp(Properties properties,
String name,
boolean defaultValue) |
static String |
getStringProp(Properties properties,
String name) |
static String |
getStringProp(Properties properties,
String name,
String defaultValue) |
static Properties |
load(String file) |
public static Properties load(String file) throws IOException
IOExceptionpublic static String getStringProp(Properties properties, String name)
properties - name - public static String getStringProp(Properties properties, String name, String defaultValue)
properties - name - public static boolean getBooleanProp(Properties properties, String name)
properties - name - public static boolean getBooleanProp(Properties properties, String name, boolean defaultValue)
properties - name - defaultValue - Copyright © 2021. All rights reserved.