|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.util.PropertyUtil
public class PropertyUtil
Constructor Summary | |
---|---|
PropertyUtil()
|
Method Summary | |
---|---|
static void |
copyProperties(java.util.Properties src_prop,
java.util.Properties dest_prop)
Copy a set of properties from one Property to another. |
static void |
loadWithTrimmedValues(java.io.InputStream iStr,
java.util.Properties prop)
Read a set of properties from the received input stream, strip off any excess white space that exists in those property values, and then add those newly-read properties to the received Properties object; not explicitly removing the whitespace here can lead to problems. |
static java.lang.String |
sortProperties(java.util.Properties list)
Sorts a property list and turns the sorted list into a string. |
static java.lang.String |
sortProperties(java.util.Properties list,
java.lang.String indent)
Sorts property list and print out each key=value pair prepended with specific indentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyUtil()
Method Detail |
---|
public static java.lang.String sortProperties(java.util.Properties list)
list
- property list to sort
public static java.lang.String sortProperties(java.util.Properties list, java.lang.String indent)
public static void copyProperties(java.util.Properties src_prop, java.util.Properties dest_prop)
src_prop
- Source set of properties to copy from.dest_prop
- Dest Properties to copy into.public static void loadWithTrimmedValues(java.io.InputStream iStr, java.util.Properties prop) throws java.io.IOException
iStr
- An input stream from which the new properties are to be
loaded (should already be initialized).prop
- A set of properties to which the properties from
iStr will be added (should already be initialized).
properties loaded from 'iStr' (with the extra whitespace (if any)
removed from all values), will be returned via the parameter.
java.io.IOException
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |