Class EnvironmentUtils

java.lang.Object
com.github.fracpete.processoutput4j.core.EnvironmentUtils

public class EnvironmentUtils extends Object
Helper class for environment operations.
  • Constructor Details

    • EnvironmentUtils

      public EnvironmentUtils()
  • Method Details

    • envMapToArray

      public static String[] envMapToArray(Map<String,String> env)
      Turns the environment map into array of key=value strings.
      Parameters:
      env - the environment to convert
      Returns:
      the key=value strings
    • envArrayToMap

      public static Map<String,String> envArrayToMap(String[] env)
      Turns the environment strings (key=value) into a map.
      Parameters:
      env - the key=value strings to convert
      Returns:
      the generated map