public class PropertiesUtil
extends Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(Properties sourceProperties,
Properties targetProperties) |
static Properties |
fromMap(Map<String,?> map) |
static void |
fromProperties(Properties properties,
Map<String,String> map) |
static Properties |
getProperties(Properties properties,
String prefix,
boolean removePrefix) |
static String |
list(Map<String,String> map) |
static void |
list(Map<String,String> map,
PrintStream printWriter) |
static void |
list(Map<String,String> map,
PrintWriter printWriter) |
static String |
list(Properties properties) |
static Properties |
load(InputStream is,
String charsetName) |
static void |
load(Properties properties,
String s) |
static Properties |
load(Reader reader) |
static Properties |
load(String s) |
static void |
merge(Properties properties1,
Properties properties2) |
static Map |
toMap(Properties properties) |
static String |
toString(Properties properties) |
static void |
trimKeys(Properties properties) |
public static void copyProperties(Properties sourceProperties, Properties targetProperties)
public static Properties fromMap(Map<String,?> map)
public static void fromProperties(Properties properties, Map<String,String> map)
public static Properties getProperties(Properties properties, String prefix, boolean removePrefix)
public static String list(Map<String,String> map)
public static void list(Map<String,String> map, PrintStream printWriter)
public static void list(Map<String,String> map, PrintWriter printWriter)
public static String list(Properties properties)
public static Properties load(InputStream is, String charsetName) throws IOException
IOException
public static void load(Properties properties, String s) throws IOException
IOException
public static Properties load(Reader reader) throws IOException
IOException
public static Properties load(String s) throws IOException
IOException
public static void merge(Properties properties1, Properties properties2)
public static Map toMap(Properties properties)
public static String toString(Properties properties)
public static void trimKeys(Properties properties)