Package com.nomagic.utils
Class NativeWebBrowserLauncher
java.lang.Object
com.nomagic.utils.NativeWebBrowserLauncher
NativeWebBrowserLauncher provides a static method to open the system default web browser to the given URL.
It may support other protocols depending on the system (mailto, ftp, etc.),
but this has not been accurate tested and is not guaranteed to work.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NativeWebBrowserLauncher
public NativeWebBrowserLauncher()
-
-
Method Details
-
openURL
Attempts to open the given URL in the default web browser.- Parameters:
url
- the URL to open- Throws:
IOException
- if the web browser is not found or does not run
-