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