Class EnvironmentUtils
java.lang.Object
com.github.fracpete.processoutput4j.core.EnvironmentUtils
Helper class for environment operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenvArrayToMap(String[] env) Turns the environment strings (key=value) into a map.static String[]envMapToArray(Map<String, String> env) Turns the environment map into array of key=value strings.
-
Constructor Details
-
EnvironmentUtils
public EnvironmentUtils()
-
-
Method Details
-
envMapToArray
Turns the environment map into array of key=value strings.- Parameters:
env- the environment to convert- Returns:
- the key=value strings
-
envArrayToMap
Turns the environment strings (key=value) into a map.- Parameters:
env- the key=value strings to convert- Returns:
- the generated map
-