Class PlatformUtil
java.lang.Object
com.github.markusbernhardt.proxy.util.PlatformUtil
Defines some helper methods to find the correct platform.
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformUtil.DesktopGets the desktop that we are running on.static PlatformUtil.PlatformGets the platform we are currently running on.static PlatformUtil.BrowserGets the ID for the platform default browser.static StringGets the user home directory where normally all the settings are stored.
-
Field Details
-
OVERRIDE_HOME_DIR
- See Also:
-
XML_FEATURE_SECURE_PROCESSING
- See Also:
-
-
Constructor Details
-
PlatformUtil
public PlatformUtil()
-
-
Method Details
-
getCurrentPlattform
Gets the platform we are currently running on.- Returns:
- a platform code.
-
getDefaultBrowser
Gets the ID for the platform default browser.- Returns:
- a browser ID, null if no supported browser was detected.
-
getCurrentDesktop
Gets the desktop that we are running on.- Returns:
- the desktop identifier.
-
getUserHomeDir
Gets the user home directory where normally all the settings are stored.- Returns:
- the path to the home directory.
-