Package org.cip4.jdflib.util
Class PlatformUtil
- java.lang.Object
-
- org.cip4.jdflib.util.PlatformUtil
-
public class PlatformUtil extends java.lang.Objecthelper util for platform identifying.
-
-
Constructor Summary
Constructors Constructor Description PlatformUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intgetConnectionTimeout()Deprecated.static java.lang.StringgetJavaVersion()static java.lang.StringgetProperty(java.lang.String key)Returns either the non-empty property or environment variable keystatic booleanhasProperty(java.lang.String key)Returns true if we have a variablestatic booleanisWindows()Returns true when system platform is Microsoft Windows.static JDFAttributeMaplistProperties(boolean java, boolean env)
-
-
-
Method Detail
-
isWindows
public static boolean isWindows()
Returns true when system platform is Microsoft Windows.- Returns:
- true if platform is windows.
-
getProperty
public static java.lang.String getProperty(java.lang.String key)
Returns either the non-empty property or environment variable key- Returns:
- the value
-
getJavaVersion
public static java.lang.String getJavaVersion()
-
listProperties
public static JDFAttributeMap listProperties(boolean java, boolean env)
-
hasProperty
public static boolean hasProperty(java.lang.String key)
Returns true if we have a variable- Returns:
- the value
-
getConnectionTimeout
@Deprecated public static int getConnectionTimeout()
Deprecated.Returns connection timeout in milliseconds as integer.- Returns:
- connectionTimeout in milliseconds
-
-