public final class PropertyUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Properties |
getDataSourceProperties(String datasource)
Construct a Properties object from a single string, converting '|' symbols to end of line
characters for parsing.
|
static String |
getDataSourceString(Properties properties)
Convert properties to a string representation.
|
public static Properties getDataSourceProperties(String datasource)
Example: "abc=def|car=bmw" gets converted to "abc" -> "def", and "car" -> "bmw"
datasource
- The string value to convert to properties, pipe separatedpublic static String getDataSourceString(Properties properties)
properties
- A list of properties to convertCopyright © 2004-2013 Codehaus. All Rights Reserved.