| java.lang.Object net.myvietnam.mvncore.configuration.ConfigurationUtils
fileSeparator | protected static String fileSeparator(Code) | | File separator.
|
constructFile | static File constructFile(String basePath, String fileName)(Code) | | Helper method for constructing a file object from a base path and a
file name. This method is called if the base path passed to
getURL() does not seem to be a valid URL.
Parameters: basePath - the base path Parameters: fileName - the file name the resulting file |
dump | public static void dump(Configuration configuration, PrintStream out)(Code) | | Dump the configuration key/value mappings to some ouput stream.
Parameters: configuration - the configuration Parameters: out - the output stream to dump the configuration to |
dump | public static void dump(Configuration configuration, PrintWriter out)(Code) | | Dump the configuration key/value mappings to some writer.
Parameters: configuration - the configuration Parameters: out - the writer to dump the configuration to |
getURL | public static URL getURL(String basePath, String file) throws MalformedURLException(Code) | | Constructs a URL from a base path and a file name. The file name can
be absolute, relative or a full URL. If necessary the base path URL is
applied.
Parameters: basePath - the base path URL (can be null) Parameters: file - the file name the resulting URL throws: MalformedURLException - if URLs are invalid |
toString | public static String toString(Configuration configuration)(Code) | | Get a string representation of the key/value mappings of a
configuration.
Parameters: configuration - the configuration a string representation of the configuration |
|
|