Package org.apache.uima.internal.util
Class BrowserUtil
java.lang.Object
org.apache.uima.internal.util.BrowserUtil
The
BrowserUtil class provides one static method -
openUrlInDefaultBrowser, which opens the given URL in the default web browser for
the current user of the system. Current implementation supports Windows, Linux and some Unix
systems.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidFor testing only.static ProcessAttempts to open the default web browser to the given URL.
-
Method Details
-
main
For testing only.- Parameters:
args- [url_to_open]
-
openUrlInDefaultBrowser
Attempts to open the default web browser to the given URL.- Parameters:
url- The URL to open- Returns:
- Returns the process browser object or null if no browser could be found. On MacOs null is returned in any case.
- Throws:
Exception- If the available web browser does not run
-