Package org.cip4.jdflib.util
Class PlatformUtil
java.lang.Object
org.cip4.jdflib.util.PlatformUtil
helper util for platform identifying.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intDeprecated.static Stringstatic StringgetProperty(String key) Returns either the non-empty property or environment variable keystatic booleanhasProperty(String key) Returns true if we have a variablestatic booleanReturns true when system platform is Microsoft Windows.static JDFAttributeMaplistProperties(boolean java, boolean env)
-
Constructor Details
-
PlatformUtil
public PlatformUtil()
-
-
Method Details
-
isWindows
public static boolean isWindows()Returns true when system platform is Microsoft Windows.- Returns:
- true if platform is windows.
-
getProperty
Returns either the non-empty property or environment variable key- Returns:
- the value
-
getJavaVersion
-
listProperties
-
hasProperty
Returns true if we have a variable- Returns:
- the value
-
getConnectionTimeout
Deprecated.Returns connection timeout in milliseconds as integer.- Returns:
- connectionTimeout in milliseconds
-