| java.lang.Object org.apache.derbyTesting.functionTests.harness.PropertyUtil
PropertyUtil | public class PropertyUtil (Code) | | |
copyProperties | public static void copyProperties(Properties src_prop, Properties dest_prop)(Code) | | Copy a set of properties from one Property to another.
The identifier to be used to open the conglomerate later. Parameters: src_prop - Source set of properties to copy from. Parameters: dest_prop - Dest Properties to copy into. |
sortProperties | public static String sortProperties(Properties list)(Code) | | Sorts a property list and turns the sorted list into a string.
Parameters: list - property list to sort a string version of the sorted list |
sortProperties | public static String sortProperties(Properties list, char[] indent)(Code) | | Sorts property list and print out each key=value pair prepended with
specific indentation. If indent is null, do not prepend with
indentation.
The output string shows up in two styles, style 1 looks like
{ key1=value1, key2=value2, key3=value3 }
style 2 looks like
key1=value1
key2=value2
key3=value3
where indent goes between the new line and the keys
To get style 1, pass in a null indent
To get sytle 2, pass in non-null indent (whatever you want to go before
the key value)
|
|
|