| java.util.Properties de.mcs.utils.PropertiesHelper
PropertiesHelper | public class PropertiesHelper extends Properties (Code) | | Some helper functions for properties like getting all keys with a regex.
author: w.klaas |
Method Summary | |
final public Properties | extractProperties(String keyPrefix) Extracting all properties into a new Propertie class with begin with the
prefix keyPrefix.
Parameters: keyPrefix - the prefix to use. | final public String[] | getKeys(String regex) Searching for all Keys with the regex string. | final public void | storeSorted(OutputStream out, String comments) Storing a properties class in a Stream in sorted manner. |
extractProperties | final public Properties extractProperties(String keyPrefix)(Code) | | Extracting all properties into a new Propertie class with begin with the
prefix keyPrefix.
Parameters: keyPrefix - the prefix to use. Properties |
getKeys | final public String[] getKeys(String regex)(Code) | | Searching for all Keys with the regex string.
Parameters: regex - regular expression for the keys to find String[] array with all found keys |
storeSorted | final public void storeSorted(OutputStream out, String comments) throws IOException(Code) | | Storing a properties class in a Stream in sorted manner.
Parameters: out - the output stream Parameters: comments - the comments header. throws: IOException - if something goes wrong. |
|
|