Top Constructors Methods
org.jruby.util

public Class OSEnvironment

extends Object
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, .Map.Entry, .Properties, jnr.posix.util.Platform, org.jcodings.Encoding, org.jruby.Ruby, .RubyString

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Map<RubyString, RubyString>
asMapOfRubyStrings(final Ruby runtime, final Map<?, ?> map)

public static Map<RubyString, RubyString>
environmentVariableMap(Ruby runtime)

Returns the environment as a hash of Ruby strings.

public Map<RubyString, RubyString>
public Map<RubyString, RubyString>
public static Map<String, String>
private static void
putRubyKeyValuePair(Ruby runtime, final Map<RubyString, RubyString> map, String key, Encoding keyEncoding, String value, Encoding valueEncoding)

public static Map<RubyString, RubyString>

Returns:

the java system properties as a Map<RubyString,RubyString>.
systemPropertiesMap
(Ruby runtime)

Returns java system properties as a Map<RubyString,RubyString>.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OSEnvironmentback to summary
public OSEnvironment()

Method Detail

asMapOfRubyStringsback to summary
private static Map<RubyString, RubyString> asMapOfRubyStrings(final Ruby runtime, final Map<?, ?> map)
environmentVariableMapback to summary
public static Map<RubyString, RubyString> environmentVariableMap(Ruby runtime)

Returns the environment as a hash of Ruby strings.

getEnvironmentVariableMapback to summary
public Map<RubyString, RubyString> getEnvironmentVariableMap(Ruby runtime)
getSystemPropertiesMapback to summary
public Map<RubyString, RubyString> getSystemPropertiesMap(Ruby runtime)
propertiesToStringMapback to summary
public static Map<String, String> propertiesToStringMap(Properties properties)
putRubyKeyValuePairback to summary
private static void putRubyKeyValuePair(Ruby runtime, final Map<RubyString, RubyString> map, String key, Encoding keyEncoding, String value, Encoding valueEncoding)
systemPropertiesMapback to summary
public static Map<RubyString, RubyString> systemPropertiesMap(Ruby runtime)

Returns java system properties as a Map<RubyString,RubyString>.

Returns:Map<RubyString, RubyString>

the java system properties as a Map<RubyString,RubyString>.