Class GeneralUtils
java.lang.Object
ch.autumo.commons.utils.common.GeneralUtils
General-purpose utility methods (string, file, path, date, ...).
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiescopyProperties(Properties destination, Properties toCopy) Copy props to destination props.static PropertiescopyProperties(Properties destination, Properties toCopy, boolean overwrite) Copy props to destination props.Create map.static StringgetHtmlStackTrace(Throwable throwable) Get an exception stack trace as html.static StringgetStackTrace(Throwable throwable) Get an exception stack trace as text.static voidprintProperties(Properties props) Print properties.
-
Method Details
-
getStackTrace
-
getHtmlStackTrace
-
copyProperties
Copy props to destination props. Existing destination properties are not overwritten !- Parameters:
destination- destination propstoCopy- props to copy into destination- Returns:
- destination props with values of the props copied
-
copyProperties
public static Properties copyProperties(Properties destination, Properties toCopy, boolean overwrite) Copy props to destination props.- Parameters:
destination- destination propstoCopy- props to copy into destinationoverwrite- true, if existing destination properties should be overwritten- Returns:
- destination props with values of the props copied
-
printProperties
-
createMap
-