|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.configuration.ConfigurationUtils
Miscellaneous utility methods for configurations.
| Field Summary | |
protected static java.lang.String |
fileSeparator
File separator. |
| Constructor Summary | |
private |
ConfigurationUtils()
|
| Method Summary | |
(package private) static java.io.File |
constructFile(java.lang.String basePath,
java.lang.String fileName)
Helper method for constructing a file object from a base path and a file name. |
static void |
dump(Configuration configuration,
java.io.PrintStream out)
Dump the configuration key/value mappings to some ouput stream. |
static void |
dump(Configuration configuration,
java.io.PrintWriter out)
Dump the configuration key/value mappings to some writer. |
static java.net.URL |
getURL(java.lang.String basePath,
java.lang.String file)
Constructs a URL from a base path and a file name. |
static java.lang.String |
toString(Configuration configuration)
Get a string representation of the key/value mappings of a configuration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String fileSeparator
| Constructor Detail |
private ConfigurationUtils()
| Method Detail |
public static void dump(Configuration configuration,
java.io.PrintStream out)
configuration - the configurationout - the output stream to dump the configuration to
public static void dump(Configuration configuration,
java.io.PrintWriter out)
configuration - the configurationout - the writer to dump the configuration topublic static java.lang.String toString(Configuration configuration)
configuration - the configuration
public static java.net.URL getURL(java.lang.String basePath,
java.lang.String file)
throws java.net.MalformedURLException
basePath - the base path URL (can be null)file - the file name
java.net.MalformedURLException - if URLs are invalid
static java.io.File constructFile(java.lang.String basePath,
java.lang.String fileName)
getURL() does not seem to be a valid URL.
basePath - the base pathfileName - the file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||