public final class OpenBrowser extends Object
Modifier | Constructor and Description |
---|---|
private |
OpenBrowser() |
Modifier and Type | Method and Description |
---|---|
static String |
displayUrl(String url)
Displays an external URL using platform associated software.
|
static String |
displayUrl(URI uri)
Displays an external URI using platform associated software.
|
private static void |
displayUrlFallback(URI uri) |
private OpenBrowser()
private static void displayUrlFallback(URI uri) throws IOException
IOException
public static String displayUrl(URI uri)
uri
- The URI to displaynull
for success or a string in case of an error.IllegalStateException
- if no platform is set to which opening the URL can be dispatched,
Main.platform
public static String displayUrl(String url)
url
- The URL to displaynull
for success or a string in case of an error.IllegalStateException
- if no platform is set to which opening the URL can be dispatched,
Main.platform